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 +4 -4
- data/fluent-plugin-chef-client.gemspec +1 -1
- data/lib/fluent/plugin/in_chef_client.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2e715ab2672fcea587327afb4df5cd0b33f4534
|
4
|
+
data.tar.gz: bded815a684db812ef3234b0a115ff964ac6784e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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 :
|
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("#{@
|
75
|
+
Engine.emit("#{@tag}.#{key}", now, {"value" => val})
|
76
76
|
end
|
77
77
|
if ::Numeric === data["ohai_time"]
|
78
|
-
Engine.emit("#{@
|
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.
|
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-
|
11
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|