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 +4 -4
- data/VERSION +1 -1
- data/gaptool-client.gemspec +1 -1
- data/lib/gaptool-client.rb +8 -1
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e97fc2249a3356f274b2ee5b4e874b65496e70e8
|
4
|
+
data.tar.gz: 5bc4645d017c5145cd85f1710adf5f6e471345aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a98327348ba61934e95331acc3d8f31e51d6742a91e556221ee15c19258177a0d31dd002ad308e2a74eae52226c81255d7a9066cbf9f305244df8e9282d4974f
|
7
|
+
data.tar.gz: e9869e2828456019135a7126d1a2a0eb9c65df318a08bd5e336e4269e89b666362511a659ca7a6b9f6bfeffb3e58d8662e0e5ce1caf558e048e50fa0d73900b0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
data/gaptool-client.gemspec
CHANGED
@@ -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.
|
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"
|
data/lib/gaptool-client.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
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.
|
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.
|
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
|