opsworks_interactor 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/opsworks_interactor.rb +7 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f97a42f30cb55c2e5f1937ad59db3d5b23d315e1
4
- data.tar.gz: fedbbe8f5eb7dfea2e37634e9974344caa6ca651
3
+ metadata.gz: 109bbd26533d2195f0b4009fcbf2d4320392e8d3
4
+ data.tar.gz: ae6604872078010fee3e41bf3e762b2d718d6446
5
5
  SHA512:
6
- metadata.gz: eb8b867c041410e7a034f0980a5b1c708567f68facb11384af57f1634a512f861d25649dfe785f69aece6dca05e18f3f0d4c87d06e07bbbdd6681cf6703c65d1
7
- data.tar.gz: 2d9e4dcaf2f646acd9a3603e9bf8a3c939185e170dc0e57685596f20be49940607a1085eece458ef8059bc93c8c51ffadb8622ca20cd94d95efa4d6a123956b3
6
+ metadata.gz: 523c2f58067eef4f9beab3bab3568c6fa35b26db9f7c1bd843fb85009f4fef7071e95fe913804538095c4d13d861037bd36fb048a8da9d179a3ee023312fcbab
7
+ data.tar.gz: 55d8763865232ae3a2e8af488d6a7454e2921df3c82ea53bff21d099d89fcb43ccdbbb3e24e8ce2fbc30e0ee66e9236873e8e3fc290bb3331b29acb376f6026f
@@ -64,7 +64,6 @@ class OpsworksInteractor
64
64
  log("Deploy process running (id: #{response[:deployment_id]})...")
65
65
 
66
66
  wait_until_deploy_completion(response[:deployment_id], deploy_timeout)
67
- end
68
67
 
69
68
  log("✓ deploy completed")
70
69
 
@@ -81,13 +80,15 @@ class OpsworksInteractor
81
80
  :deployment_successful,
82
81
  deployment_ids: [deployment_id]
83
82
  ) do |w|
84
- # disable max attempts
85
- w.max_attempts = nil
86
- # poll for a time period, instead of a number of attempts
87
- before_wait do |attempts, response|
88
- raise Aws::Waiters::Errors::TimeoutError if (Time.now - started_at) > timeout
83
+ # disable max attempts
84
+ w.max_attempts = nil
85
+ # poll for a time period, instead of a number of attempts
86
+ before_wait do |_attempts, _response|
87
+ if (Time.now - started_at) > timeout
88
+ raise Aws::Waiters::Errors::TimeoutError
89
89
  end
90
90
  end
91
+ end
91
92
  end
92
93
 
93
94
  # Loop through all instances in layer
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opsworks_interactor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Davies