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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8a8344e5a0dbeebb82f380036a4277ce11d1b5b
4
- data.tar.gz: bec4f4aa5fc0d67c252f908bb7b4b86debe8ac86
3
+ metadata.gz: f1b7b7ec7ba14085de169040f36a701ac36f46b5
4
+ data.tar.gz: 0586e144fbecd0f6e26b8af03bb48c8c5e03059c
5
5
  SHA512:
6
- metadata.gz: 836a555387274f25b22a3f1a26ebd8e83ce161f5ee2f1d6b5acdc1e14337adfd955cef477b4f19e0e6781b986ed041d16dbe9465bc7bc40db21e9802faa05021
7
- data.tar.gz: 18330f53ba237764ff4a6a3f09a58c58d2334aa88689f4b914130488cabc7dac82c52245501a57c61a1e3d124d5316b0705b668dde73dd424e8c93689a104cd3
6
+ metadata.gz: 06b9619d4b2b7628629e742e5cbf52bc46a09c7e46403df5120551a2cc6a9b83542b6fbfd8190e832cbf61c551edb3f1439a85081bdfeb85176c00c0f065f2e3
7
+ data.tar.gz: 16180ec6f7239a933a6a8f1482419fa3fa40ba339336dc93aed5ff5a9f20bad2236131920b1c0cba1abec8e0538dba1d18a045335b1faf8121a56e976877e29e
@@ -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 10
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
- abq.put(link,reqdata,reqoptions)
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"
@@ -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
- response2=response.link(:status).get
42
- while response2.state == "LOCKED" || response2.state=="STARTED"
43
- response2=response.link(:status).get
44
- sleep 10
45
- print "."
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
@@ -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.8"
34
+ VERSION = "0.2.9"
33
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Fearn