kapacitor-ruby 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kapacitor/client.rb +1 -1
- data/lib/kapacitor/version.rb +1 -1
- 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: 795cb8cba13bf7643718aff7e5d2755fed163b3e
|
4
|
+
data.tar.gz: c25770257f9f8a8836c5149c34ac25574742a6f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d12403ece9d64cb88e01194fc69cc53ded04bcd4c568d1e90cee2862ddab4eb2a4fa52d45d6cb657a8d9807edd2d0ec673a7cf48900f728f379bad40bf93a11
|
7
|
+
data.tar.gz: fddd0de75f3592fbf0f6297b297a2f32b6072266b0df22db761ea09a56d3aaefcd70403ec65d98cd8c8a671eccd9eb6daed5eb26da74e348be0b26a13f4a061d
|
data/lib/kapacitor/client.rb
CHANGED
@@ -57,7 +57,7 @@ module Kapacitor
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def define_task(id, opts = {})
|
60
|
-
raise ArgumentError, "Kapacitor task dbrps is required"
|
60
|
+
raise ArgumentError, "Kapacitor task dbrps is required" unless opts['dbrps']
|
61
61
|
|
62
62
|
if (opts['template_id'].nil? and opts['type'].nil? and opts['script'].nil?) or (opts['template_id'] and (opts['type'] or opts['script']))
|
63
63
|
raise ArgumentError, "Must specify either a Template ID or a script and type"
|
data/lib/kapacitor/version.rb
CHANGED