gaptool-client 0.8.0.pre.alpha10 → 0.8.0.pre.beta
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/api.rb +8 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68a9d97413a05181ebcdd93e39faa46e946e50dd
|
4
|
+
data.tar.gz: ba3b4cd9f6fa62331d5bd6c2904f3d514a93cc6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5d78cf78d710d30f1af5dee705354058c4a64d8fcf86c8baa2c288040ed6595ce368388e8a9263a07d57cd748435d51ab827701d4429773041907193f77df67
|
7
|
+
data.tar.gz: b4c9059eb0d8007b959637cf5ad56e40f5c92301590fd953fb07891c48c2819ace4a0df49763fb458ba0b769ba9ba92d9abd329d1aba5d968230637624e81e9e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.0-
|
1
|
+
0.8.0-beta
|
data/lib/gaptool_client/api.rb
CHANGED
@@ -15,24 +15,23 @@ module Gaptool
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.query_nodes(opts)
|
18
|
-
instance = opts
|
19
|
-
role = opts
|
20
|
-
environment = opts
|
21
|
-
|
22
|
-
cl = opts[:client] || client
|
18
|
+
instance = opts.delete(:instance)
|
19
|
+
role = opts.delete(:role)
|
20
|
+
environment = opts.delete(:environment)
|
21
|
+
cl = opts.delete(:client) || client
|
23
22
|
|
24
23
|
if instance
|
25
24
|
puts Rainbow('Ignoring role and environment as instance is set').red \
|
26
25
|
if role || environment
|
27
26
|
[cl.getonenode(instance)]
|
28
27
|
elsif role && environment
|
29
|
-
cl.getenvroles(role, environment,
|
28
|
+
cl.getenvroles(role, environment, opts)
|
30
29
|
elsif role
|
31
|
-
cl.getrolenodes(role,
|
30
|
+
cl.getrolenodes(role, opts)
|
32
31
|
elsif environment
|
33
|
-
cl.getenvnodes(environment,
|
32
|
+
cl.getenvnodes(environment, opts)
|
34
33
|
else
|
35
|
-
cl.getallnodes(
|
34
|
+
cl.getallnodes(opts)
|
36
35
|
end
|
37
36
|
end
|
38
37
|
|
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.8.0.pre.
|
4
|
+
version: 0.8.0.pre.beta
|
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: 2016-01-
|
13
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|