instrumental_pubnub_example 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/bin/instrumental_pubnub_relay +4 -0
- data/lib/instrumental/pub_nub/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: 01b0c6637d12ea8a45b077f6aad80f52a5cb6240
|
4
|
+
data.tar.gz: 6b8f27a571caec2ef1b8e0910f4e19b910e13e3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2c5639110243c22b9777d929712e8e989de2bfa79adc6cc5d1b042ebf08709be8373de1eb339e3408578670cba43aac2e5ffdc88f7f87761631908a8cb1d01b
|
7
|
+
data.tar.gz: c45e3f7c2d31bc438b002ca3a330500cf38e81818f400941549b63e25ca40c5e0fac46ee420c3258b5c6f9c18d0ff52fd51a02b8855342ee4ef118422a855ee8
|
data/README.md
CHANGED
@@ -27,6 +27,7 @@ Usage: instrumental_pubnub_relay [options]
|
|
27
27
|
-c, --pubnub-channel CHANNEL Your PubNub channel
|
28
28
|
-i API_KEY, Your Instrumental API key
|
29
29
|
--instrumental-api-key
|
30
|
-
-p, --key-prefix PREFIX String to prefix all received metrics with (default: my.
|
30
|
+
-p, --key-prefix PREFIX String to prefix all received metrics with (default: my.hostname)
|
31
31
|
-l, --log-level LEVEL Log level for output, valid values are: ["debug", "warn", "info", "fatal"]
|
32
|
+
-v, --version Print version and exit
|
32
33
|
```
|
@@ -28,6 +28,10 @@ OptionParser.new do |opts|
|
|
28
28
|
opts.on("-l", "--log-level LEVEL", log_levels, "Log level for output, valid values are: #{log_levels.inspect}") do |l|
|
29
29
|
log_level = l
|
30
30
|
end
|
31
|
+
opts.on("-v", "--version", "Print version and exit") do
|
32
|
+
puts "Instrumental Pubnub Example: #{Instrumental::PubNub::VERSION}"
|
33
|
+
exit 0
|
34
|
+
end
|
31
35
|
end.parse!
|
32
36
|
|
33
37
|
if pubnub_subscribe.to_s.strip.empty?
|