fluent-plugin-chef-client 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b44feefe34583e151300f0d32fdab9497a4045d6
4
- data.tar.gz: ee6716e89069236cad8247e5773b64d029bd76d2
3
+ metadata.gz: d2e715ab2672fcea587327afb4df5cd0b33f4534
4
+ data.tar.gz: bded815a684db812ef3234b0a115ff964ac6784e
5
5
  SHA512:
6
- metadata.gz: 2373341c44f5691b96785427e7561470e4b3e189d41f7a7bb0153e4d6b1bddc9ace82f564fa751ac4d832d2e69d34f0ae75dc456bd8f7bcf05e38577b2426ca8
7
- data.tar.gz: 6ae13da60366d46b673879c584d9952dfedd81cb4fca2f3bd456cd9c2c85279faa46dcc0e824e9bd4a418e4774928f451832b0314ba1ff9f676a15507d85d6b6
6
+ metadata.gz: e2f6d7539d00a1de56b18ef6097beb4fde94fd34e78ca74fc5053cee0aacba13564b7f3a9ab9bdc7739df9cc83c8d231343d73a746c792c38bef24c8a90c26a8
7
+ data.tar.gz: cbd0627af34127d75c340293f8ba0111f7563c687c0bca122c8b7da17da6d833b630f031292c6180edaed5bd848c45216e6b8a772adec46f1732cdc0080eb0da
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-chef-client"
7
- spec.version = "0.2.0"
7
+ spec.version = "0.3.0"
8
8
  spec.authors = ["Yamashita Yuu"]
9
9
  spec.email = ["peek824545201@gmail.com"]
10
10
  spec.license = "Apache-2.0"
@@ -20,7 +20,7 @@ module Fluent
20
20
  config_param :client_key, :string, :default => nil
21
21
  config_param :config_file, :string, :default => "/etc/chef/client.rb"
22
22
  config_param :node_name, :string, :default => nil
23
- config_param :tag_prefix, :string, :default => "chef_client"
23
+ config_param :tag, :string, :default => "chef_client"
24
24
 
25
25
  def initialize
26
26
  super
@@ -72,10 +72,10 @@ module Fluent
72
72
  $log.debug("#{File.basename(__FILE__).dump} exits as #{$?.exitstatus}")
73
73
  if $?.exitstatus == 0
74
74
  data.each do |key, val|
75
- Engine.emit("#{@tag_prefix}.#{key}", now, {"value" => val})
75
+ Engine.emit("#{@tag}.#{key}", now, {"value" => val})
76
76
  end
77
77
  if ::Numeric === data["ohai_time"]
78
- Engine.emit("#{@tag_prefix}.behind_seconds", now, {"value" => now - data["ohai_time"]})
78
+ Engine.emit("#{@tag}.behind_seconds", now, {"value" => now - data["ohai_time"]})
79
79
  end
80
80
  else
81
81
  raise("invalid response from #{__FILE__.dump}")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-chef-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yamashita Yuu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-05 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler