chef-handler-riemann 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/handler/riemann.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb89bdce7e2f557a35f7bbb180b98ba08075a887
|
4
|
+
data.tar.gz: c1c324b3afff459f69c6b5dbb890f50da3a933f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77f04025058308c79859c9c4fadd5041ba877bf79a24bfd926d970a378eb45cbc6f5406d5bacec3dcae86b96e989dcd494a5d9e225b25ddcb10902a89017ca1c
|
7
|
+
data.tar.gz: d048fe976fd2cbffdd42b5d3046fb20316ff5545bbd97cd4686e9bff1478e3fd8603b41fa9288fa23baf069ea7139401d8ea2971a9f6ba8647076ab0a342b3a7
|
data/lib/chef/handler/riemann.rb
CHANGED
@@ -7,10 +7,13 @@ class Chef
|
|
7
7
|
attr_writer :host, :port, :ttl_running, :ttl_finished, :timeout
|
8
8
|
|
9
9
|
def initialize(options={})
|
10
|
+
# Some versions of Chef had issues as chef-client cookbook passes it with string indicies
|
11
|
+
options = Mash.from_hash(options)
|
12
|
+
|
10
13
|
@host = options[:host] || 'localhost'
|
11
14
|
@port = options[:port] || 5555
|
12
|
-
@ttl_running = options[:
|
13
|
-
@ttl_finished = options[:
|
15
|
+
@ttl_running = options[:ttl_running] || 600
|
16
|
+
@ttl_finished = options[:ttl_finished] || 3600 # seems reasonable given chef runs every 30 mins by default
|
14
17
|
@timeout = options[:timeout] || 5
|
15
18
|
end
|
16
19
|
|