File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## Pull Request Checklist
2+
3+ ** Is this in reference to an existing issue?**
4+
5+ #### General
6+
7+ - [ ] Update Changelog following the conventions laid out [ here] ( https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md )
8+
9+ - [ ] Update README with any necessary configuration snippets
10+
11+ - [ ] Binstubs are created if needed
12+
13+ - [ ] RuboCop passes
14+
15+ - [ ] Existing tests pass
16+
17+ #### New Plugins
18+
19+ - [ ] Tests
20+
21+ - [ ] Add the plugin to the README
22+
23+ - [ ] Does it have a complete header as outlined [ here] ( http://sensu-plugins.io/docs/developer_guidelines.html#coding-style )
24+
25+ #### Purpose
26+
27+ #### Known Compatibility Issues
Original file line number Diff line number Diff line change 1- MethodLength :
2- Max : 200
3-
4- LineLength :
5- Max : 160
6-
7- AbcSize :
8- Max : 100
9-
10- FileName :
11- Enabled : false
12-
13- PerceivedComplexity :
14- Enabled : false
15-
16- CyclomaticComplexity :
17- Enabled : false
18-
19- ClassLength :
20- Enabled : false
21-
22- IfUnlessModifier :
23- Enabled : false
24-
25- RegexpLiteral :
26- Enabled : false
27-
28- Style/Documentation :
29- Enabled : false
1+
2+ MethodLength :
3+ Max : 200
4+
5+ LineLength :
6+ Max : 160
7+
8+ AbcSize :
9+ Max : 100
10+
11+ FileName :
12+ Enabled : false
13+
14+ PerceivedComplexity :
15+ Enabled : false
16+
17+ CyclomaticComplexity :
18+ Enabled : false
19+
20+ ClassLength :
21+ Enabled : false
22+
23+ IfUnlessModifier :
24+ Enabled : false
25+
26+ RegexpLiteral :
27+ Enabled : false
28+
29+ Style/Documentation :
30+ Enabled : false
Original file line number Diff line number Diff line change 1- language : ruby
2- rvm :
3- - 2.1
4- - 2.2
5- - 2.3.0
6- before_install :
7- - gem update bundler
8- deploy :
9- provider : rubygems
10- api_key :
11- secure : fnQYXam9lo9VzmmOZgQjB8C35Vq3E4eWmgHNhmPnHTGWSfkMvk/755CizKkbcA8MLuqGoy5vqqfldGArJD62vfhYqKZhAanFBHBr7OhUfVAhGX3tz2+TQt3FjzFaDGOzoVI6rFO+8tZYLGkeMwmTFXkFgJDdHEi6mpokvFaj35SktF/iYPmwDZhqATMAmnuTVKRxVudJ1HQtX9f+kgb7L35/QcG55CirnXxdueqr6wC/rk4XyzVg7dZLQXjXlo4MQXEMZ1BrLkvpdjcb0y5pET/U1oSuhFSwIv6vvy89yzQvmdDaYhWL9PumPdtC2LVorkv7FZT/vQAzVD7ewPvaFsMoP0CSrik8RImUry+8RLwxhV08n5DOkAiSzTUk+KF1jQ1HTR2v4t+UjFQSW3vg83kgJnR9sDRPHfxVO2/yAVjEmqk+F/Fs+oelf2b+JFrlnJ7fqI/c9wWYYfxiBAR+vhq0iCZEZEyIjLSGba1yQ8xJEW0ncA29ykjXx35w/SIAWqgBFblLIAehZ+m3ep1tCZwoQy8f1WQmx3n5iCXa5fx6d19hCJKfjevprjX/LOGgLdp2aU0mLszyQOF5ORAaR64QKpyBs5pHNLNkapGAUttzjktak9WgEagzu9TTEcBnsCsZgi0h/NaU/egZXM8a+aRQqopIcoMzD5GRB0OI8Og=
12- gem : sensu-plugins-systemd
13- on :
14- tags : true
15- repo : mickfeech/sensu-plugins-systemd
1+ language : ruby
2+ cache :
3+ - bundler
4+ before_install : gem install bundler -v 1.15
5+ install :
6+ - bundle install
7+ rvm :
8+ - 2.0
9+ - 2.1
10+ - 2.2
11+ - 2.3.0
12+ - 2.4.1
13+ notifications :
14+ email :
15+ recipients :
16+ - sensu-plugin@sensu-plugins.io
17+ on_success : change
18+ on_failure : always
19+ script :
20+ - gem build sensu-plugins-systemd.gemspec
21+ - gem install sensu-plugins-systemd-*.gem
22+ - bundle exec rake default
23+ deploy :
24+ provider : rubygems
25+ api_key :
26+ secure : Hf1ZRHiWtWvOlcoLmcFJSql688r7s8CkTRUO5FYvUBjJE/x/P2+UDFONcYzycEAkLXzv9MIMXHO8vZ2m5rVSqbiP055+MtzRnukO2OaF2Ke0vYCuArOxj/LvhKAuLJRVNYbD138MltCnqUMjU2Ks4b4Z/wtHqSkbOoBsyTwwpYq0HiCbQyGNkacGzMZ44vnPR3cS0TrljjwYhnn1gDKkEkQf1p3iNrmIIapspU64U36KsxaGccFiXo2YSI9vBY+kssfGIOB5YAXoFHQ3YqdTpGMy7Q587IttlIlPQwhvYvK9lCZMZSCxmaZMGq2zy+3ttKe9CEejPGAtaPkiYrmmuM1hZUgQDk94znsTitpZxX5vlFMv5BUnxiOHcL+aQKFG4DlTj7KD+7a0BPb3AbUeD2njql6elCXiGeqzKgjS5x9W7WDZdoMj8VdQWzs+hh98C9yY5DDipp13yGJ3gqzKmKRbaHXUA9wLY4ic0022+ZwxCKX5TKqjOAi8WmQSCG19r+/uIaFY5MeTE7wrsuA0oSWM5YA9UaJNf5WbpUpC9tLG2owvAOjtEwhBBS9EijhiME8ABKBqp/RWJYqrj8PDrucDYLm2pB2PzlLKqs/+UQ//Rh4U/TKRLdWBrCevVr5hw6TLRl5ThoEjL1heqHsoH3X51rhtt3MBleYkawn37jg=
27+ gem : sensu-plugins-systemd
28+ on :
29+ tags : true
30+ all_branches : true
31+ rvm : 2.0
32+ rvm : 2.1
33+ rvm : 2.2
34+ rvm : 2.3.0
35+ rvm : 2.4.1
36+ repo : sensu-plugins/sensu-plugins-systemd
Original file line number Diff line number Diff line change 1- #Change Log
2- This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
1+ # Change Log
2+ This CHANGELOG follows the format listed at [ Our CHANGELOG Guidelines ] ( https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md ) .
3+ Which is based on [ Keep A Changelog] ( http://keepachangelog.com/ )
34
45This CHANGELOG follows the format listed at [ Keep A Changelog] ( http://keepachangelog.com/ )
56
7+ ## [ Unreleased]
8+ ### Added
9+ - missing changelog entries (@majormoses )
10+ - standard PR templates (@majormoses )
11+
12+ ### Changed
13+ - update the location of our changelog format (@majormoses )
14+ - updated with standard ` .travis.yml ` and updated secret for deploy to rubygems (@majormoses )
15+ - updated with standard ` .rubocop.yml ` (@majormoses )
16+ - updated with standard ` Rakefile ` (@majormoses )
17+
18+
19+ ## [ 0.0.5]
20+ ### Changed
21+ - bumped version of gem
22+
23+ ## [ 0.0.4]
24+ ### Fixed
25+ - check-systemd.rb: critical alert when requested service does not exist (@jgnagy )
26+
27+
628## 0.0.1 - 2016-04-26
729### Added
830- initial release
31+
32+ [ Unreleased ] : https://github.com/sensu-plugins/sensu-plugins-systemd/compare/v0.0.5...HEAD
33+ [ 0.0.5 ] : https://github.com/sensu-plugins/sensu-plugins-systemd/compare/v0.0.4...v0.0.5
34+ [ 0.0.4 ] : https://github.com/sensu-plugins/sensu-plugins-systemd/compare/v0.0.3...v0.0.4
Original file line number Diff line number Diff line change 11## Sensu-Plugins-systemd
2- [ ![ Build Status] ( https://travis-ci.org/mickfeech /sensu-plugins-systemd.svg?branch=master )] ( https://travis-ci.org/mickfeech /sensu-plugins-systemd )
3- [ ![ Gem Version] ( https://badge.fury.io/rb/sensu-plugins-systemd.svg )] ( http://badge.fury.io/rb/sensu-plugins-lvm-thinpools )
4- [ ![ Code Climate] ( https://codeclimate.com/github/mickfeech /sensu-plugins-systemd/badges/gpa.svg )] ( https://codeclimate.com/github/mickfeech /sensu-plugins-systemd )
2+ [ ![ Build Status] ( https://travis-ci.org/sensu-plugins /sensu-plugins-systemd.svg?branch=master )] ( https://travis-ci.org/sensu-plugins /sensu-plugins-systemd )
3+ [ ![ Gem Version] ( https://badge.fury.io/rb/sensu-plugins-systemd.svg )] ( http://badge.fury.io/rb/sensu-plugins-systemd )
4+ [ ![ Code Climate] ( https://codeclimate.com/github/sensu-plugins /sensu-plugins-systemd/badges/gpa.svg )] ( https://codeclimate.com/github/sensu-plugins /sensu-plugins-systemd )
55## Functionality
66This provides functionality to check if services are running for systemd.
77
@@ -14,3 +14,9 @@ Pass services as a comma delimited -s option
1414```
1515check-systemd.rb -s SERVICE1.service,SERVICE2.service
1616```
17+
18+ ## Installation
19+
20+ [ Installation and Setup] ( http://sensu-plugins.io/docs/installation_instructions.html )
21+
22+ ## Notes
Original file line number Diff line number Diff line change @@ -6,15 +6,6 @@ require 'rubocop/rake_task'
66require 'yard'
77require 'yard/rake/yardoc_task'
88
9- desc 'Don\'t run Rubocop for unsupported versions'
10- begin
11- args = if RUBY_VERSION >= '2.0.0'
12- %i[ spec make_bin_executable yard rubocop check_binstubs ]
13- else
14- %i[ spec make_bin_executable yard ]
15- end
16- end
17-
189YARD ::Rake ::YardocTask . new do |t |
1910 OTHER_PATHS = %w[ ] . freeze
2011 t . files = [ 'lib/**/*.rb' , 'bin/**/*.rb' , OTHER_PATHS ]
3425
3526desc 'Test for binstubs'
3627task :check_binstubs do
37- bin_list = Gem ::Specification . load ( 'sensu-plugins-systemd.gemspec' ) . executables
38- bin_list . each do |b |
39- `which #{ b } `
40- unless $CHILD_STATUS. success?
41- puts "#{ b } was not a binstub"
42- exit
28+ unless Dir . glob ( 'bin/**/*.rb' ) . empty?
29+ bin_list = Gem ::Specification . load ( 'sensu-plugins-systemd.gemspec' ) . executables
30+ bin_list . each do |b |
31+ `which #{ b } `
32+ unless $CHILD_STATUS. success?
33+ puts "#{ b } was not a binstub"
34+ exit
35+ end
4336 end
4437 end
4538end
4639
47- task default : args
40+ task default : %i[ spec make_bin_executable yard rubocop check_binstubs ]
Original file line number Diff line number Diff line change 99 require_relative 'lib/sensu-plugins-systemd'
1010end
1111
12- Gem ::Specification . new do |s |
12+ Gem ::Specification . new do |s | # rubocop:disable Metrics/BlockLength
1313 s . name = 'sensu-plugins-systemd'
1414 s . version = SensuPluginsSystemd ::Version ::VER_STRING
1515 s . platform = Gem ::Platform ::RUBY
1616 s . authors = [ 'mickfeech and contributors' ]
1717 s . date = Date . today . to_s
18- s . email = [ 'cmcfee@kent.edu' ]
18+ s . email = [
19+ 'cmcfee@kent.edu' ,
20+ '<sensu-users@googlegroups.com>'
21+ ]
1922 s . executables = Dir . glob ( 'bin/**/*.rb' ) . map { |file | File . basename ( file ) }
2023 s . homepage = 'https://github.com/mickfeech/sensu-plugins-systemd'
2124 s . summary = 'This provides functionality to check systemd services.'
2225 s . description = 'Plugins to provide functionality to check systemd services for Sensu, a monitoring framework'
2326 s . license = 'MIT'
2427 s . has_rdoc = false
2528 s . require_paths = [ 'lib' ]
26- s . files = Dir [ ' lib/**/*.rb' ]
29+ s . files = Dir . glob ( '{bin, lib} /**/*' ) + %w[ LICENSE README.md CHANGELOG.md ]
2730 # s.test_files = Dir['test/*.rb']
2831 s . test_files = s . files . grep ( %r{^(test|spec|features)/} )
2932
You can’t perform that action at this time.
0 commit comments