marathon_deploy 0.1.37 → 0.1.38
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 +8 -8
- data/lib/marathon_deploy/deployment.rb +14 -4
- data/lib/marathon_deploy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZGE2ZDdjYTU3MmU3NmIwZGNjMTZkN2MwOGQ0ZGMyM2UwZmRlNWM5Nw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NjJlZTFhN2I2ZGNlZDhiNGVmY2JhZTdlYTYzMzA0Zjk0NDgxMDNiMQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NjA2ZTBjN2YzZTUxNzNhN2Y0NzUzMGNiNWMzYThkNDdlNmUyY2U1YzYzY2Ri
|
|
10
|
+
MTRmMDk4MjY3ZTAyZWVmNzMxOGQ3MjQ5MzljMjYwNTMxZmEyYzE4NjQ0MGZl
|
|
11
|
+
ZDZjMjRiOTQ5YmJmMjQ2OTA2OTdlZDMwOTUxOGJlZjcxNDBkZDA=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YzMwZjk0ZDUwZWI0YmQ4Y2RkMzU3MmJhZTAwYzc4NDBiNzlmMmJiODlhMzc2
|
|
14
|
+
MjlkMzdhMjViZjZjZDRiNjIzZTE3OGQyYzRkOGU4ZWMyNWE1MDVhZWE0OTAx
|
|
15
|
+
YzQ2YWZjM2M4ZmVlZDVkMDRlOTMzMjcyYTY0NzlmMmY1YTE0Mzg=
|
|
@@ -165,10 +165,20 @@ module MarathonDeploy
|
|
|
165
165
|
raise ArgumentError, "value must be boolean true or false" unless (!!value == value)
|
|
166
166
|
state = Array.new
|
|
167
167
|
if (health_checks_defined?)
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
apps = Array.new
|
|
169
|
+
|
|
170
|
+
5.times { |i|
|
|
171
|
+
i+=1
|
|
172
|
+
response = list_app
|
|
173
|
+
response_body = Utils.response_body(response)
|
|
174
|
+
apps = response_body[:app]
|
|
175
|
+
break unless apps.nil?
|
|
176
|
+
$LOG.info "Application #{@application.id} is not yet registered with Marathon. Waiting #{i} seconds then retrying ..."
|
|
177
|
+
sleep i
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (apps.nil? or apps.empty?)
|
|
181
|
+
raise Error::DeploymentError, "Marathon API returned an empty app or nil json object for application #{@application.id}", caller
|
|
172
182
|
else
|
|
173
183
|
tasks = Hash.new
|
|
174
184
|
task_ids = Array.new
|