gaptool-client 0.6.17 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b158a9481e0c6fd7990fd637e24af6e48e051f0c
4
- data.tar.gz: 5e64280bde40df111f34855453730820a09ed180
3
+ metadata.gz: e97fc2249a3356f274b2ee5b4e874b65496e70e8
4
+ data.tar.gz: 5bc4645d017c5145cd85f1710adf5f6e471345aa
5
5
  SHA512:
6
- metadata.gz: d7f41bb09bef79340681cf86fee310ca37a46421087ce9a3de71addad32ca6da956a7e23b7dcb4860158c3b65fd08d62970f79dad93e47be983a127c6215ee34
7
- data.tar.gz: 2f5a9f48d329fae7cf5e1939ff8a8ee7487326cf5794bfb169497a06e0726659903a4f210473ce8435a296da65a3c05bd6f0aaf3639267b7f3010745c80d8f9b
6
+ metadata.gz: a98327348ba61934e95331acc3d8f31e51d6742a91e556221ee15c19258177a0d31dd002ad308e2a74eae52226c81255d7a9066cbf9f305244df8e9282d4974f
7
+ data.tar.gz: e9869e2828456019135a7126d1a2a0eb9c65df318a08bd5e336e4269e89b666362511a659ca7a6b9f6bfeffb3e58d8662e0e5ce1caf558e048e50fa0d73900b0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.17
1
+ 0.7.0
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.add_runtime_dependency 'clamp', "~> 0.6"
32
32
  s.add_runtime_dependency 'net-ssh', "~> 2.9"
33
33
  s.add_runtime_dependency 'net-scp', "~> 1.2"
34
- s.add_runtime_dependency 'gaptool-api', "~> 0.6", ">= 0.6.5"
34
+ s.add_runtime_dependency 'gaptool-api', "~> 0.7"
35
35
  s.add_runtime_dependency 'builder', "~> 3"
36
36
 
37
37
  s.add_development_dependency 'shoulda', "~> 3"
@@ -152,6 +152,7 @@ module Gaptool
152
152
  parameter "COMMAND ...", "Command to run", :attribute_name => :command
153
153
  def execute
154
154
  if !instance.nil?
155
+ node = $api.getonenode(instance)
155
156
  nodes = [$api.getonenode(instance)]
156
157
  else
157
158
  nodes = $api.getenvroles(role, environment)
@@ -325,7 +326,13 @@ module Gaptool
325
326
  def execute
326
327
  attrs = split_attrs(attribute_list)
327
328
  if instance
328
- nodes = [$api.getonenode(instance)]
329
+ n = $api.getonenode(instance)
330
+ if n['environemnt'] != environment
331
+ abort "Instance #{instance} is not in environment #{environment}"
332
+ elsif !n['apps'].include?(app)
333
+ abort "Instance #{instance} does not host #{app} in env #{environment}"
334
+ end
335
+ nodes = [n]
329
336
  else
330
337
  params = hidden? ? {hidden: true} : {}
331
338
  nodes = $api.getappnodes(app, environment, params)
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.17
4
+ version: 0.7.0
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-02-18 00:00:00.000000000 Z
13
+ date: 2015-05-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -102,20 +102,14 @@ dependencies:
102
102
  requirements:
103
103
  - - "~>"
104
104
  - !ruby/object:Gem::Version
105
- version: '0.6'
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- version: 0.6.5
105
+ version: '0.7'
109
106
  type: :runtime
110
107
  prerelease: false
111
108
  version_requirements: !ruby/object:Gem::Requirement
112
109
  requirements:
113
110
  - - "~>"
114
111
  - !ruby/object:Gem::Version
115
- version: '0.6'
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: 0.6.5
112
+ version: '0.7'
119
113
  - !ruby/object:Gem::Dependency
120
114
  name: builder
121
115
  requirement: !ruby/object:Gem::Requirement