ej 0.1.5 → 0.1.6
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/ej/commands.rb +6 -0
- data/lib/ej/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: 8114ce429be8682fa3ef3693c392fd86f50b81c7
|
|
4
|
+
data.tar.gz: a7be74bcadebb2c1665c805ac29deaab8a23d651
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b402747aa787970ec738c36fb8329c5f26416b79af28a510a1a79b627c14a475bfb3e892ee8395a30a0acaf608098ce103244664c2fd8823d27a83f3ab0b0981
|
|
7
|
+
data.tar.gz: 9924d233f04fec9c9b44e6be6e93e1228cf1aa471023cccc554758d13038890bdece393953ef4703056c83352bbdab8ec236c9740867b64d582a28625520a359
|
data/lib/ej/commands.rb
CHANGED
|
@@ -16,6 +16,7 @@ module Ej
|
|
|
16
16
|
map '-a' => :aliases
|
|
17
17
|
map '-m' => :mapping
|
|
18
18
|
map '--health' => :health
|
|
19
|
+
map '-v' => :version
|
|
19
20
|
|
|
20
21
|
def initialize(args = [], options = {}, config = {})
|
|
21
22
|
super(args, options, config)
|
|
@@ -241,6 +242,11 @@ module Ej
|
|
|
241
242
|
puts_with_format @nodes.nodes_stats
|
|
242
243
|
end
|
|
243
244
|
|
|
245
|
+
desc '-v', 'show version'
|
|
246
|
+
def version
|
|
247
|
+
puts VERSION
|
|
248
|
+
end
|
|
249
|
+
|
|
244
250
|
private
|
|
245
251
|
|
|
246
252
|
def puts_with_format(object)
|
data/lib/ej/version.rb
CHANGED