chef-handler-influxdb 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'chef-handler-influxdb'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
  s.author = 'Jake Davis'
5
5
  s.email = 'jake.davis5989@gmail.com'
6
6
  s.homepage = 'http://github.com/jakedavis/chef-handler-influxdb'
@@ -60,9 +60,10 @@ class ChefInfluxDB < Chef::Handler
60
60
  end
61
61
 
62
62
  def generate_data
63
+ status_int = run_status.success?
63
64
  return JSON.generate({
64
65
  :host => node.name,
65
- :status => run_status.success? 1 : 0,
66
+ :status => run_status.success? ? 1 : 0,
66
67
  :resources_updated => run_status.updated_resources.length,
67
68
  :elapsed_time => run_status.elapsed_time,
68
69
  :end_time => Time.now.to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-influxdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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-11-16 00:00:00.000000000 Z
12
+ date: 2013-11-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Updates InfluxDB with Chef run and arbitrary user data
15
15
  email: jake.davis5989@gmail.com
@@ -18,6 +18,7 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - chef-handler-influxdb-0.1.0.gem
21
+ - chef-handler-influxdb-0.1.1.gem
21
22
  - chef-handler-influxdb.gemspec
22
23
  - lib/chef-handler-influxdb.rb
23
24
  - LICENSE