vagabund 0.0.22 → 0.0.23

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: a911dc2ee37e83eafa97ce5c1c535c6d728941eb
4
- data.tar.gz: 18cb1ec7b8afa4b747dd9efaf43078eca2fa6861
3
+ metadata.gz: 4ba9d13234d139dc29e778e85e99eaa00e0bdf4a
4
+ data.tar.gz: 37d4bbe691e8acfc36a7e0f3673b64ebe3d7257a
5
5
  SHA512:
6
- metadata.gz: 6433ef1a25d7b837e167c83292a046bb2e7ae41e0167ad4bf4ae8889499e93ad6bed6ebf53819be0a9dd10c1c6e52d6b0683f5c965f04fa70c09affd8b181dd4
7
- data.tar.gz: dafccfc10839542f2ef0d8a9b0296bc899ae273c243a1dd4d499b8d561b74844c0f43431c202448b9f36a0ea79947d4a0d9137e4cbee08c6f39611bd95afa145
6
+ metadata.gz: e85a5b09ede5c53688f442421443dd0f707d9fe9572e068bd4a3cb0646b51b8a7233af48d3101d839d6e3db71e969565ad4db22937ad80aee851ba31b2ec0829
7
+ data.tar.gz: 604ff475faf3226dda5f028c202cabecf77c2f4d5eb84bb4e24f403923620efe58901bbd2c559f5291c604d5beeb47a7dda3d00c8ae82f9e613484e3ac2428e8
@@ -147,16 +147,21 @@ module Vagabund
147
147
  ami_json = JSON.parse(`aws ec2 describe-images --owners=self --output=json`.chomp)
148
148
  image = ami_json['Images'].select { |img| img['ImageId'] == image_id }.first
149
149
 
150
- @env.ui.info " #{image_id}: Image is in state '#{image['State']}'" if image['State'] != last_state
151
-
152
- last_state = image['State']
153
- if image['State'] == 'failed'
154
- @env.ui.error "==> #{image_id}: Image Creation Failed!", bold: true
155
- @env.ui.error " #{image_id}: #{image['StateReason']['Message']}"
156
- break;
157
- elsif image['State'] == state
158
- break;
159
- end
150
+ if image.nil? # sometimes AWS takes a while to even list the AMI
151
+ @env.ui.info " #{image_id}: Image is in state '#{image['State']}'" if image['State'] != last_state
152
+
153
+ last_state = image['State']
154
+ if image['State'] == 'failed'
155
+ @env.ui.error "==> #{image_id}: Image Creation Failed!", bold: true
156
+ @env.ui.error " #{image_id}: #{image['StateReason']['Message']}"
157
+ break;
158
+ elsif image['State'] == state
159
+ break;
160
+ end
161
+ else
162
+ @env.ui.info " #{image_id}: Image is in state 'unknown'" if last_state != 'unknown'
163
+ last_state = 'unknown'
164
+ end
160
165
 
161
166
  sleep 5
162
167
  end
@@ -1,3 +1,3 @@
1
1
  module Vagabund
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagabund
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-10 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.2.2
116
+ rubygems_version: 2.4.6
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Vagrant plugin for provisioning users, configs, packages, projects and more.