builderator 2.0.2 → 2.0.3

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: 02fbe9845121a437bd25ac6a07905e979927f8a3
4
- data.tar.gz: a6e86d96fa8681572a4f347bf3b47020abb23e94
3
+ metadata.gz: d61791d654bbf812e8a6fc0ff5c45516e97d46c1
4
+ data.tar.gz: 37f685e6f924ce60a5a921409412c7eafadb44dd
5
5
  SHA512:
6
- metadata.gz: d6dd4af87e88bbade40ca9e9654f9f2ccb0bd8fbee9acda392ab8f03bfbf39ba16e9e071092b69206f62389c7a09c7110ac6c1a051d0a9c1a821f0b0d19e0f17
7
- data.tar.gz: f3001cb5890833c3bbef7d9bc468cf2a91fe757b078650415b763be4f736588d37fc522c2391dd04e3e68f423a4ccce1dcca4999f7ab57075fd498da4123e150
6
+ metadata.gz: e4515821bcc561de3c1bf73d771b187f52415a9010285c4540a565c52aa50307440f4b8062e62ea009b32042f10c03f4670210b500f8e3d372f8882e6cd71760
7
+ data.tar.gz: 966b56ae5f3744be67d19e6fb501a0f77d8a0ace9852afd38a20e7597dbe876492f327e0d03eb3321b67863538ac83ac88c2bdf130e0504f11731035574ac469
@@ -199,9 +199,13 @@ module Builderator
199
199
 
200
200
  ## Find details for generated images in current region
201
201
  def images
202
- @images ||= Config.profile.current.packer.build.each_with_object({}) do |(_, build), memo|
203
- memo[build.ami_name] = [Control::Data.lookup(:image, :name => build.ami_name).first, build]
202
+ Retryable.retryable(:sleep => lambda { |n| 4**n }, :tries => 4, :on => [NoMethodError]) do |retries, _|
203
+ @images ||= Config.profile.current.packer.build.each_with_object({}) do |(_, build), memo|
204
+ memo[build.ami_name] = [Control::Data.lookup(:image, :name => build.ami_name).first, build]
205
+ end
206
+ @images.length # Will throw NoMethodError if no images found; triggers retry
204
207
  end
208
+ @images
205
209
  end
206
210
 
207
211
  def copy_image(region, params)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: builderator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Manero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-02 00:00:00.000000000 Z
11
+ date: 2018-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake