elbas 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f230806c681808b3d37a4d4a720c09b8e34e7aa2
4
- data.tar.gz: 30290b6381f13e53467fd0b285719c68ba008282
3
+ metadata.gz: 9b1d56b907d0661648e7126dd6def559f4b0f8cf
4
+ data.tar.gz: d7e391e0cfa9464b2597a26455f5651dedbd5495
5
5
  SHA512:
6
- metadata.gz: 7f8655009ba5356cc1a481ea84fcc5d42f1fec1ee01be514e2824834751a47006c7bc40edf57664548cbdb50480086d75635ee3793336ce803ab2c5f3fad6a21
7
- data.tar.gz: e04ce2ff07c9c834d35b4c0e6e8d08ccf694d17bc810dbf0c823cc4f69d26999b5aef1547396666b1d1598ede501686da2b5ef4fb461731cfb96a50c830fe2fc
6
+ metadata.gz: 0792bae769681aa6ed7a0a3222a22a9f11507c9b1b5ddfe491812afc14be499d3a012254ae44dec684634126be6e31284f9b923254d8e63488e75a4d6e5ba99f
7
+ data.tar.gz: 1b756042a26ee7d14cd9d42dbd263d41002e8f0ca8320f83cbc34d5d66d6117e1c34882a20faebc824dec2b5389718ecca32335403ce56f527cc006146239a80
@@ -11,8 +11,8 @@ module Elbas
11
11
 
12
12
  def save(ami)
13
13
  info "Creating an EC2 Launch Configuration for AMI: #{ami.aws_counterpart.id}"
14
- @aws_counterpart = with_retry do
15
- autoscaling.launch_configurations.create(name, ami.aws_counterpart.id, instance_size, create_options)
14
+ with_retry do
15
+ @aws_counterpart = autoscaling.launch_configurations.create(name, ami.aws_counterpart.id, instance_size, create_options)
16
16
  end
17
17
  end
18
18
 
@@ -6,7 +6,9 @@ module Elbas
6
6
  tries += 1
7
7
  yield
8
8
  rescue => e
9
+ p "Rescued #{e.message}"
9
10
  if tries < max
11
+ p "Retrying..."
10
12
  sleep delay
11
13
  retry
12
14
  end
@@ -1,3 +1,3 @@
1
1
  module Elbas
2
- VERSION = '0.17.0'
2
+ VERSION = '0.18.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elbas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Serman