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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/gaptool_client/api.rb +8 -9
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa9dd20c5a3510871c8f608509468eecbe10af1d
4
- data.tar.gz: 6b630911606322dcfe84c079d39ac1f84a3519d8
3
+ metadata.gz: 68a9d97413a05181ebcdd93e39faa46e946e50dd
4
+ data.tar.gz: ba3b4cd9f6fa62331d5bd6c2904f3d514a93cc6e
5
5
  SHA512:
6
- metadata.gz: e1a964392d1513c5d6737d74be6c80a4c1f7817c49aa41670fd6737a8253330b1410b5fdebee963567c8e6db5859635e8af716ca36a070415f6c9483628280d5
7
- data.tar.gz: 97a514d92544ed74fe8be26135623f816d568cd42460a36717289369faf3f7f53feadb5ecf70f37e095e1a88b13a88cd66b326ee5651146a9f635ef6d319b315
6
+ metadata.gz: f5d78cf78d710d30f1af5dee705354058c4a64d8fcf86c8baa2c288040ed6595ce368388e8a9263a07d57cd748435d51ab827701d4429773041907193f77df67
7
+ data.tar.gz: b4c9059eb0d8007b959637cf5ad56e40f5c92301590fd953fb07891c48c2819ace4a0df49763fb458ba0b769ba9ba92d9abd329d1aba5d968230637624e81e9e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0-alpha10
1
+ 0.8.0-beta
@@ -15,24 +15,23 @@ module Gaptool
15
15
  end
16
16
 
17
17
  def self.query_nodes(opts)
18
- instance = opts[:instance]
19
- role = opts[:role]
20
- environment = opts[:environment]
21
- params = opts[:params]
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, params)
28
+ cl.getenvroles(role, environment, opts)
30
29
  elsif role
31
- cl.getrolenodes(role, params)
30
+ cl.getrolenodes(role, opts)
32
31
  elsif environment
33
- cl.getenvnodes(environment, params)
32
+ cl.getenvnodes(environment, opts)
34
33
  else
35
- cl.getallnodes(params)
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.alpha10
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-04 00:00:00.000000000 Z
13
+ date: 2016-01-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json