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.
- checksums.yaml +4 -4
- data/lib/opsworks_interactor.rb +7 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 109bbd26533d2195f0b4009fcbf2d4320392e8d3
|
4
|
+
data.tar.gz: ae6604872078010fee3e41bf3e762b2d718d6446
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 523c2f58067eef4f9beab3bab3568c6fa35b26db9f7c1bd843fb85009f4fef7071e95fe913804538095c4d13d861037bd36fb048a8da9d179a3ee023312fcbab
|
7
|
+
data.tar.gz: 55d8763865232ae3a2e8af488d6a7454e2921df3c82ea53bff21d099d89fcb43ccdbbb3e24e8ce2fbc30e0ee66e9236873e8e3fc290bb3331b29acb376f6026f
|
data/lib/opsworks_interactor.rb
CHANGED
@@ -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
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
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
|