gaptool-client 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/gaptool-client.rb +11 -2
- 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: 213e9a35c2f885589f215d1bbc646a2f9f004e10
|
4
|
+
data.tar.gz: 5b7881ae9505f2b34a89d4870810b8fd21767e85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffa2163760435e4ea576ae77c02c554d26a2d84ba3ca31d12c164359610b41493bb2419bee29f5068a98fd54be154edfb8e35fba4638855147b1adf43011749d
|
7
|
+
data.tar.gz: 209c7b52cd5b4132c12a6d21425a311c2210564f75d4428ce45d2f6047e21ca52f1471d11566a7dc122b390a5c26fd309316cd8a908a0a7a4f4bc0f89756b9c4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.7
|
data/lib/gaptool-client.rb
CHANGED
@@ -110,9 +110,18 @@ module Gaptool
|
|
110
110
|
|
111
111
|
class TerminateCommand < Clamp::Command
|
112
112
|
option ["-i", "--instance"], "INSTANCE", "Instance ID, e.g. i-12345678", :required => true
|
113
|
-
option ["-z", "--zone"], "ZONE", "AWS
|
113
|
+
option ["-z", "--zone"], "ZONE", "AWS region of the node (deprecated/ignored)", :default => nil
|
114
114
|
def execute
|
115
|
-
$api.
|
115
|
+
node = $api.getonenode(instance)
|
116
|
+
nodes = [node]
|
117
|
+
infohelper(nodes, false, false)
|
118
|
+
zone = node['zone'][0..-2]
|
119
|
+
print Rainbow("Terminate instance? [type yes to confirm]: ").red
|
120
|
+
res = $stdin.gets.chomp
|
121
|
+
if res.downcase == 'yes'
|
122
|
+
puts "Terminating instance #{node['role']}:#{node['environment']}:#{node['instance']} in region #{zone}"
|
123
|
+
$api.terminatenode(instance, zone)
|
124
|
+
end
|
116
125
|
end
|
117
126
|
end
|
118
127
|
|
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.7
|
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: 2014-09-
|
13
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|