echo_cli 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/echo_cli/cli.rb +3 -3
- data/lib/echo_cli/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: 304cdcdc353ffaa49724686c829e15cb0a1c99c5
|
4
|
+
data.tar.gz: 3095dc503395d93acde8b5f0cfce1198d0e2a5bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 779e12c3ad8c316d227f50869f6fc19a8ec7f422ff4209570916b429487731faac217d919c5762ac645363468e71224ed7939adc783ef1ca3f202e6cd19b537e
|
7
|
+
data.tar.gz: f893c37905b08a65804a48cc9d156ca2000522af9ef952f1290103051d88978a332059c1e06fe22aaf6e40ce1dcf4cfeb67e4b62886c2126e2f41621cc644baf
|
data/lib/echo_cli/cli.rb
CHANGED
@@ -5,16 +5,16 @@ require 'net/https'
|
|
5
5
|
|
6
6
|
module Echo_cli
|
7
7
|
class Echo < Thor
|
8
|
-
desc "post", "Post metrics to Echo. Use \"
|
8
|
+
desc "post", "Post metrics to Echo. Use \"echo_cli post <IP> '<metric>' <{number}>\""
|
9
9
|
|
10
10
|
long_desc <<-LONGDESC
|
11
|
-
`
|
11
|
+
`echo_cli post` will post a metric directly to Echo's StatsD server.
|
12
12
|
|
13
13
|
You can optionally specify a third integer parameter, which will post the same metric an integer number of times equal to the number specified.
|
14
14
|
|
15
15
|
Ensure single-quotes surround the metric.
|
16
16
|
|
17
|
-
> $
|
17
|
+
> $ echo_cli post localhost 'example.post:1|c' {10}
|
18
18
|
LONGDESC
|
19
19
|
|
20
20
|
def post(ip, body, num = 0)
|
data/lib/echo_cli/version.rb
CHANGED