builderator 1.3.0 → 1.3.1

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: 710962f091dbc4e8bdb78702764f537c5205d7bb
4
- data.tar.gz: fb314bfd5f1aa4b35bb2204cb6def699ccc5030f
3
+ metadata.gz: 3fb4ef86c45cb16fe6e55dfd1ccd041497c81841
4
+ data.tar.gz: 3575be68dc9cc77d5777c013fe94f0ad7c311906
5
5
  SHA512:
6
- metadata.gz: 338681e36782e334d7e08bf6f463fafda8f186f11679b2d81dfdff03423a79d36094279b5987c28b270f16d1f18ec4276797bfd5368dd6c87e21fd824cef4070
7
- data.tar.gz: 436d1936dccd2f2902aa8a2fbfe9ac564c07424df435314464575a082d4364d695c40c725e55b9c7b2c87c3a71de2bf84d3a89fc3de2fbaa8585a39630e58868
6
+ metadata.gz: 8957a669718384c61f98f0586bc852ef4ea318943f24d53a75e5e6dbdeafa02664098c8c641a4f227799e21c3f44ddc7b11345c1706e529b609077a92226b8e0
7
+ data.tar.gz: 9e071245a11d147a245a1fdfa851b09623db62e5c744c1f6fca542e2fc59e102f7b8415cadbeea366eb956f630c18ad762fb955a0b5cd603205e568acfedf8ec
@@ -206,7 +206,7 @@ module Builderator
206
206
 
207
207
  def copy_image(region, params)
208
208
  Retryable.retryable(:sleep => lambda { |n| 4**n }, :tries => 4, :on => [Aws::EC2::Errors::ServiceError]) do |retries, _|
209
- say_status :error, 'Error copying image', :red if retries.positive?
209
+ say_status :error, 'Error copying image', :red if retries > 0
210
210
  Util.ec2(region).copy_image(params)
211
211
  end
212
212
  end
@@ -219,7 +219,7 @@ module Builderator
219
219
 
220
220
  image = nil
221
221
  Retryable.retryable(:sleep => lambda { |n| 4**n }, :tries => 4, :on => [Aws::EC2::Errors::ServiceError]) do |retries, _|
222
- say_status :error, 'Error finding image', :red if retries.positive?
222
+ say_status :error, 'Error finding image', :red if retries > 0
223
223
  image = Util.ec2(region).describe_images(:filters => filters).images.first
224
224
  end
225
225
  image
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: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Manero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-05 00:00:00.000000000 Z
11
+ date: 2017-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake