marathon_deploy 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/marathon_deploy/application.rb +5 -9
- data/lib/marathon_deploy/version.rb +1 -1
- 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: 56b7fcd0a0d4b27df9cb35818fa722d1028847d9
|
4
|
+
data.tar.gz: a46f1dca1c28aa7efca0ec8996a21d3a152a02ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7bff9b1cc690fb50340db5038dc1e981e10d2c86fa115cb4dc4dabf7b9f0fb1964e495f3b866ba6fd35ed2e3f3e363142fb07eedb22d28200b5646259b751da
|
7
|
+
data.tar.gz: 8462c1ce5dc68a7935a71c3820833b4b0c0721626ecd0e7155be6a4d3e966193271ad687fbb86c98b217d6eb98888a515b67b5e76edc805e2450b5aaf5748b4d
|
data/README.md
CHANGED
@@ -32,8 +32,8 @@ $ gem install marathon_deploy
|
|
32
32
|
Executables from this gem:
|
33
33
|
|
34
34
|
$ marathon_deploy (client program executable, automatically added to $PATH)
|
35
|
-
$
|
36
|
-
$
|
35
|
+
$ json2yaml (convenience utility for converting json to yaml)
|
36
|
+
$ expand_macros (expands all macros in the form %%MACRO%% with value of ENV[MACRO])
|
37
37
|
|
38
38
|
|
39
39
|
## Usage
|
@@ -62,17 +62,17 @@ module MarathonDeploy
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def health_checks
|
65
|
-
|
65
|
+
@json[:healthChecks]
|
66
66
|
end
|
67
67
|
|
68
68
|
def add_identifier
|
69
69
|
random = Utils.random
|
70
70
|
# Time.now.to_i
|
71
|
-
json[:env]['UNIQUE_ID'] = "#{id}_#{random}"
|
71
|
+
@json[:env]['UNIQUE_ID'] = "#{id}_#{random}"
|
72
72
|
end
|
73
73
|
|
74
74
|
def to_s
|
75
|
-
|
75
|
+
JSON.pretty_generate(@json)
|
76
76
|
end
|
77
77
|
|
78
78
|
# @return [JSON] list of ENV variables for this application
|
@@ -81,9 +81,7 @@ module MarathonDeploy
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def id
|
84
|
-
|
85
|
-
return @json[:id]
|
86
|
-
end
|
84
|
+
@json[:id]
|
87
85
|
end
|
88
86
|
|
89
87
|
def add_envs(envs)
|
@@ -97,9 +95,7 @@ module MarathonDeploy
|
|
97
95
|
end
|
98
96
|
|
99
97
|
def instances
|
100
|
-
|
101
|
-
return @json[:instances]
|
102
|
-
end
|
98
|
+
@json[:instances]
|
103
99
|
end
|
104
100
|
|
105
101
|
end
|