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 +4 -4
- data/lib/builderator/tasks/packer.rb +6 -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: d61791d654bbf812e8a6fc0ff5c45516e97d46c1
|
4
|
+
data.tar.gz: 37f685e6f924ce60a5a921409412c7eafadb44dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
203
|
-
|
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.
|
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-
|
11
|
+
date: 2018-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|