chef-handler-influxdb 0.1.2 → 0.1.3

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-influxdb'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
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'
@@ -43,7 +43,6 @@ class ChefInfluxDB < Chef::Handler
43
43
  :pass => 'root',
44
44
  :host => 'localhost',
45
45
  :port => 8086,
46
- :data => {},
47
46
  :database => nil,
48
47
  :series => nil
49
48
  }
@@ -51,7 +50,7 @@ class ChefInfluxDB < Chef::Handler
51
50
 
52
51
  def client
53
52
  return InfluxDB::Client.new(
54
- :database => @database,
53
+ @database,
55
54
  :host => @host,
56
55
  :port => @port,
57
56
  :username => @user,
@@ -60,14 +59,13 @@ class ChefInfluxDB < Chef::Handler
60
59
  end
61
60
 
62
61
  def generate_data
63
- status_int = run_status.success?
64
- return JSON.generate({
62
+ return {
65
63
  :host => node.name,
66
64
  :status => run_status.success? ? 1 : 0,
67
65
  :resources_updated => run_status.updated_resources.length,
68
66
  :elapsed_time => run_status.elapsed_time,
69
67
  :end_time => Time.now.to_s
70
- }.merge(@data))
68
+ }.merge(@data || {})
71
69
  end
72
70
 
73
71
  def report
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.2
4
+ version: 0.1.3
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-20 00:00:00.000000000 Z
12
+ date: 2013-11-21 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
@@ -17,8 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - chef-handler-influxdb-0.1.0.gem
21
- - chef-handler-influxdb-0.1.1.gem
20
+ - chef-handler-influxdb-0.1.3.gem
22
21
  - chef-handler-influxdb.gemspec
23
22
  - lib/chef-handler-influxdb.rb
24
23
  - LICENSE
Binary file
Binary file