marathon_deploy 0.1.46 → 0.1.47
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/README.md +1 -1
- data/lib/marathon_deploy/deployment.rb +5 -1
- data/lib/marathon_deploy/utils.rb +13 -1
- data/lib/marathon_deploy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmViZWY5NWM5N2YzM2E3ZTQ5MDgyMWRmNzNiMGFhY2EwYTQ1MjI0Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWY1YWVjMzcwNzJiN2I5YmRhZDZlYzM1OGRlMDFiZTEwNWU0YjAwMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDJlYTJmZTczNWYxMmQxZTA3MTQ1YTkwYTJhOWFkN2UwODU2OThmZDNjOWI5
|
10
|
+
NGQwZjMyYTQ0M2M3YTVlNDAyZDRhMjRmOGJhNDZmMzhhNDM5OTA3YjI4NzM5
|
11
|
+
MGUyODQyNjc3OThmYWNhNmYyZWM0NGIyOTc0NzIxNDkxNDM4ZjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTFkZTNhZWQ2NWNhNWZiNzkyZDc3OWUyNWY1MzkxOGE5MDBmYjhjNDU3YWVm
|
14
|
+
MDA4YWMwYWYzNTZmZDM4YTgwYjI1M2QyMDI2YzdhOTM4YjNkMzQzMjEwMzRj
|
15
|
+
ZGIxMDMzYTAyZWE1ZTc5YzQ3OGVhYjYxMDRkODI5NDk5NTMzYjI=
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ A [Marathon](https://mesosphere.github.io/marathon/) command-line deployment too
|
|
23
23
|
|
24
24
|
## Installation
|
25
25
|
|
26
|
-
Ensure Ruby (1.9+) and gem are installed on you system, then run:
|
26
|
+
Ensure Ruby (1.9+) and ruby-dev and gem are installed on you system, then run:
|
27
27
|
|
28
28
|
```
|
29
29
|
$ gem install marathon_deploy
|
@@ -138,7 +138,11 @@ module MarathonDeploy
|
|
138
138
|
url += force ? '?force=true' : ''
|
139
139
|
$LOG.debug("Updating app #{@application.id} #{url}")
|
140
140
|
response = HttpUtil.put(url,@application.json)
|
141
|
-
|
141
|
+
begin
|
142
|
+
@deploymentId = Utils.response_body(response)[:deploymentId]
|
143
|
+
rescue Exception=>e
|
144
|
+
$LOG.error "EXCEPTION: #{e}"
|
145
|
+
end
|
142
146
|
return response
|
143
147
|
end
|
144
148
|
|
@@ -29,9 +29,21 @@ module MarathonDeploy
|
|
29
29
|
begin
|
30
30
|
return deep_symbolize((JSON.parse(response.body)))
|
31
31
|
rescue Exception=>e
|
32
|
-
$LOG.
|
32
|
+
$LOG.error "EXCEPTION: #{e} Cannot parse JSON"
|
33
33
|
end
|
34
34
|
end
|
35
|
+
|
36
|
+
if response.body.nil?
|
37
|
+
$LOG.error "No response.body"
|
38
|
+
end
|
39
|
+
if response.body.empty?
|
40
|
+
$LOG.error "Response.body is empty"
|
41
|
+
end
|
42
|
+
if !response.kind_of?(Net::HTTPSuccess)
|
43
|
+
$LOG.error "Answer is not 200, more info:"
|
44
|
+
$LOG.error deep_symbolize((JSON.parse(response.body)))
|
45
|
+
end
|
46
|
+
|
35
47
|
return nil
|
36
48
|
end
|
37
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marathon_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.47
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Colby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger
|