chef-handler-sensu 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'chef-handler-sensu'
3
- s.version = '0.1.1'
3
+ s.version = '0.2.0'
4
4
  s.author = 'Simple Finance'
5
5
  s.email = 'ops@simple.com'
6
6
  s.homepage = 'http://github.com/SimpleFinance/chef-handler-sensu'
@@ -39,6 +39,7 @@ class SensuCleaner < Chef::Handler
39
39
  end
40
40
 
41
41
  def report
42
+ if run_status.failed? then return end
42
43
  checks = all_checks
43
44
  Dir[::File.join(node[:sensu][:directory], 'conf.d', 'checks', '*')].reject do |file|
44
45
  checks.include?(::File.basename(file, '.json'))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-09 00:00:00.000000000 Z
12
+ date: 2013-07-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Cleans up old Sensu checks during a Chef run
15
15
  email: ops@simple.com
@@ -17,7 +17,6 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - chef-handler-sensu-0.1.0.gem
21
20
  - chef-handler-sensu.gemspec
22
21
  - lib/chef-handler-sensu.rb
23
22
  - LICENSE
Binary file