gaptool-client 0.6.16 → 0.6.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/gaptool-client.rb +7 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b158a9481e0c6fd7990fd637e24af6e48e051f0c
|
4
|
+
data.tar.gz: 5e64280bde40df111f34855453730820a09ed180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7f41bb09bef79340681cf86fee310ca37a46421087ce9a3de71addad32ca6da956a7e23b7dcb4860158c3b65fd08d62970f79dad93e47be983a127c6215ee34
|
7
|
+
data.tar.gz: 2f5a9f48d329fae7cf5e1939ff8a8ee7487326cf5794bfb169497a06e0726659903a4f210473ce8435a296da65a3c05bd6f0aaf3639267b7f3010745c80d8f9b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.17
|
data/lib/gaptool-client.rb
CHANGED
@@ -12,19 +12,21 @@ def infohelper(nodes, parseable, grepable)
|
|
12
12
|
puts nodes.to_json
|
13
13
|
else
|
14
14
|
nodes.each do |node|
|
15
|
-
|
15
|
+
host = "#{node['role']}:#{node['environment']}:#{node['instance']}"
|
16
16
|
unless grepable
|
17
|
-
puts Rainbow(
|
17
|
+
puts Rainbow(host).green
|
18
18
|
end
|
19
19
|
keys = node.keys.sort
|
20
20
|
keys.each do |key|
|
21
|
+
value = node[key]
|
21
22
|
if grepable
|
22
|
-
puts "#{
|
23
|
+
puts "#{host}|#{key}|#{value}"
|
23
24
|
else
|
25
|
+
value = Time.at(node[key].to_i) if key == 'launch_time'
|
24
26
|
unless key == keys.last
|
25
|
-
puts " ┠ #{Rainbow(key).cyan}: #{
|
27
|
+
puts " ┠ #{Rainbow(key).cyan}: #{value}"
|
26
28
|
else
|
27
|
-
puts " ┖ #{Rainbow(key).cyan}: #{
|
29
|
+
puts " ┖ #{Rainbow(key).cyan}: #{value}\n\n"
|
28
30
|
end
|
29
31
|
end
|
30
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gaptool-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesco Laurita
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
228
|
rubyforge_project: gaptool-client
|
229
|
-
rubygems_version: 2.
|
229
|
+
rubygems_version: 2.2.2
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: client for gaptool-server
|