vcli 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vcli/cli.rb +8 -2
- data/lib/vcli/cli/modify.rb +10 -5
- data/lib/vcli/version.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1b7b7ec7ba14085de169040f36a701ac36f46b5
|
4
|
+
data.tar.gz: 0586e144fbecd0f6e26b8af03bb48c8c5e03059c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06b9619d4b2b7628629e742e5cbf52bc46a09c7e46403df5120551a2cc6a9b83542b6fbfd8190e832cbf61c551edb3f1439a85081bdfeb85176c00c0f065f2e3
|
7
|
+
data.tar.gz: 16180ec6f7239a933a6a8f1482419fa3fa40ba339336dc93aed5ff5a9f20bad2236131920b1c0cba1abec8e0538dba1d18a045335b1faf8121a56e976877e29e
|
data/lib/vcli/cli.rb
CHANGED
@@ -159,7 +159,7 @@ module Vcli
|
|
159
159
|
while status.state == "STARTED" && status.state != "LOCKED" do
|
160
160
|
status=response.link(:status).get
|
161
161
|
print "."
|
162
|
-
sleep
|
162
|
+
sleep 60
|
163
163
|
end
|
164
164
|
rescue Exception=> e
|
165
165
|
retry unless (tries -= 1).zero?
|
@@ -199,7 +199,13 @@ module Vcli
|
|
199
199
|
reqdata[:state]= "ON"
|
200
200
|
reqoptions=Hash.new
|
201
201
|
reqoptions[:accept] = 'application/vnd.abiquo.acceptedrequest+json'
|
202
|
-
|
202
|
+
tries ||= 5
|
203
|
+
begin
|
204
|
+
abq.put(link,reqdata,reqoptions)
|
205
|
+
sleep 60
|
206
|
+
rescue Exception=> e
|
207
|
+
retry unless (tries -= 1).zero?
|
208
|
+
end
|
203
209
|
puts "VM Powered On"
|
204
210
|
rescue AbiquoAPIClient::Forbidden
|
205
211
|
puts "Forbidden HTTP 403 Received"
|
data/lib/vcli/cli/modify.rb
CHANGED
@@ -38,11 +38,16 @@ module Vcli
|
|
38
38
|
response=abq.put(l,vm,reqoptions)
|
39
39
|
puts "Waiting for Machine to Reconfigure"
|
40
40
|
sleep 10
|
41
|
-
|
42
|
-
|
43
|
-
response2=
|
44
|
-
|
45
|
-
|
41
|
+
tries ||= 5
|
42
|
+
begin
|
43
|
+
response2=l.get
|
44
|
+
while response2.state == "LOCKED"
|
45
|
+
response2=l.get
|
46
|
+
sleep 10
|
47
|
+
print "."
|
48
|
+
end
|
49
|
+
rescue Exception=> e
|
50
|
+
retry unless (tries -= 1).zero?
|
46
51
|
end
|
47
52
|
end
|
48
53
|
end
|
data/lib/vcli/version.rb
CHANGED
@@ -27,7 +27,9 @@ module Vcli
|
|
27
27
|
# 0.2.7 #11082015# Added modify ip
|
28
28
|
#################################################################
|
29
29
|
# 0.2.8 #11082015# Bumped
|
30
|
+
#################################################################
|
31
|
+
# 0.2.9 #11082015# Bumped
|
30
32
|
#################################################################
|
31
33
|
|
32
|
-
VERSION = "0.2.
|
34
|
+
VERSION = "0.2.9"
|
33
35
|
end
|