Skip to content

Commit

Permalink
update repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jones committed May 22, 2015
1 parent bc003ae commit 009ced6
Show file tree
Hide file tree
Showing 9 changed files with 98 additions and 105 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
notifications:
email:
recipients:
Expand Down
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
#### 0.0.1.alpha.1
#Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)

## Unreleased][unreleased]

## 0.0.1 - 2015-05-21

### Added
- initial release

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 devops@yieldbot.com
Copyright (c) 2015 Sensu-Plugins

MIT License

Expand Down
45 changes: 15 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,26 @@

## Usage

## Installation

Add the public key (if you haven’t already) as a trusted certificate
This check use a nginx config in default vhost like :

```
gem cert --add <(curl -Ls https://raw.githubusercontent.com/sensu-plugins/sensu-plugins.github.io/master/certs/sensu-plugins.pem)
gem install sensu-plugins-php-fpm -P MediumSecurity
set $pool "www-data";
if ($arg_pool) {
set $pool $arg_pool;
}
location ~ "/fpm-(status|ping)" {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php-$pool.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
access_log off;
allow 127.0.0.1;
deny all;
}
```

You can also download the key from /certs/ within each repository.

#### Rubygems

`gem install sensu-plugins-php-fpm`

#### Bundler

Add *sensu-plugins-disk-checks* to your Gemfile and run `bundle install` or `bundle update`

#### Chef
## Installation

Using the Sensu **sensu_gem** LWRP
```
sensu_gem 'sensu-plugins-php-fpm' do
options('--prerelease')
version '0.0.1'
end
```
[Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)

Using the Chef **gem_package** resource
```
gem_package 'sensu-plugins-php-fpm' do
options('--prerelease')
version '0.0.1'
end
```

## Notes
31 changes: 0 additions & 31 deletions Vagrantfile

This file was deleted.

17 changes: 0 additions & 17 deletions bin/README.md

This file was deleted.

13 changes: 10 additions & 3 deletions lib/sensu-plugins-php-fpm.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
require 'sensu-plugins-php-fpm/version'

# Load the defaults

#
# Set gem version
# Default class
#
module SensuPluginsPhpFpm
# Gem version
VERSION = '0.0.1.alpha.1'
class << self
end

class << self
end
end
28 changes: 28 additions & 0 deletions lib/sensu-plugins-php-fpm/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
require 'json'

# encoding: utf-8
module SensuPluginsPhpFpm
# This defines the version of the gem
module Version
MAJOR = 0
MINOR = 0
PATCH = 1

VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')

NAME = 'sensu-plugins-php-fpm'
BANNER = "#{NAME} v%s"

module_function

def version
format(BANNER, VER_STRING)
end

def json_version
{
'version' => VER_STRING
}.to_json
end
end
end
53 changes: 31 additions & 22 deletions sensu-plugins-php-fpm.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,42 @@ end
pvt_key = '~/.ssh/gem-private_key.pem'

Gem::Specification.new do |s|
s.name = 'sensu-plugins-php-fpm'
s.version = SensuPluginsPhpFpm::VERSION
s.authors = ['Yieldbot, Inc. and contributors']
s.authors = ['Sensu-Plugins and contributors']
s.cert_chain = ['certs/sensu-plugins.pem']
s.date = Date.today.to_s
s.description = 'Sensu plugins for php-fpm'
s.email = '<sensu-users@googlegroups.com>'
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
s.files = Dir.glob('{bin,lib}/**/*') + %w(LICENSE README.md CHANGELOG.md)
s.homepage = 'https://github.com/sensu-plugins/sensu-plugins-php-fpm'
s.summary = ''
s.description = ''
s.license = 'MIT'
s.date = Date.today.to_s
s.files = Dir.glob('{bin,lib}/**/*') + %w(LICENSE README.md CHANGELOG.md)
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.require_paths = ['lib']
s.cert_chain = ['certs/sensu-plugins.pem']
s.signing_key = File.expand_path(pvt_key) if $PROGRAM_NAME =~ /gem\z/
s.metadata = { 'maintainer' => '',
'development_status' => 'active',
'production_status' => 'unstable - testing recommended',
'release_draft' => 'false',
'release_prerelease' => 'false'
}
s.name = 'sensu-plugins-php-fpm'
s.platform = Gem::Platform::RUBY
s.post_install_message = 'You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu'
s.require_paths = ['lib']
s.required_ruby_version = '>= 1.9.3'
s.signing_key = File.expand_path(pvt_key) if $PROGRAM_NAME =~ /gem\z/
s.summary = 'Sensu plugins for php-fpm'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.version = SensuPluginsPhpFpm::Version::VER_STRING

s.add_runtime_dependency 'sensu-plugin'
s.add_runtime_dependency 'redphone', '0.0.6'
s.add_runtime_dependency 'pagerduty', '2.0.1'
s.add_runtime_dependency 'sensu-plugin', '1.1.0'

s.add_development_dependency 'codeclimate-test-reporter'
s.add_development_dependency 'rubocop', '~> 0.30'
s.add_development_dependency 'rspec', '~> 3.1'
s.add_development_dependency 'bundler', '~> 1.7'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'github-markup'
s.add_development_dependency 'redcarpet'
s.add_development_dependency 'yard'
s.add_development_dependency 'pry'
s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
s.add_development_dependency 'rubocop', '~> 0.30'
s.add_development_dependency 'rspec', '~> 3.1'
s.add_development_dependency 'bundler', '~> 1.7'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'github-markup', '~> 1.3'
s.add_development_dependency 'redcarpet', '~> 3.2'
s.add_development_dependency 'yard', '~> 0.8'
s.add_development_dependency 'pry', '~> 0.10'
end

0 comments on commit 009ced6

Please sign in to comment.