marathon_deploy 0.1.16 → 0.1.17
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/README.md +7 -7
- 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: 5d62a4cd536881a4d0f65dde8dc422b91f85b312
|
|
4
|
+
data.tar.gz: b6b97438d7d6f6b2f48cc6f4c5c5be87a7a6b59d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e9156d23f9cfbf3eed44c4c9eafb24c973915fd75af1287e2738bebf4bf97e31730731edfccc734d6329e27d220de118bddae4254adeb833891a5a5545096da3
|
|
7
|
+
data.tar.gz: 8c25bc4a90e734f95474df498ef01ccb83ff2845955c337738fde6c07b90b945782b33393cd71d49d95f36d40b0515e6d371f1a93d140a15d58dcab4d3277d02
|
data/README.md
CHANGED
|
@@ -29,11 +29,11 @@ Ensure Ruby (1.9+) and gem are installed on you system, then run:
|
|
|
29
29
|
$ gem install marathon_deploy
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Executables from this gem
|
|
32
|
+
Executables from this gem:
|
|
33
33
|
|
|
34
|
-
$ marathon_deploy (client program executable)
|
|
35
|
-
$ json2yaml
|
|
36
|
-
$ expand_macros
|
|
34
|
+
$ marathon_deploy (client program executable, automatically added to $PATH)
|
|
35
|
+
$ extra/json2yaml (convenience utility for converting json to yaml)
|
|
36
|
+
$ extra/expand_macros (expands all macros in the form %%MACRO%% with value of ENV[MACRO])
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
## Usage
|
|
@@ -52,7 +52,7 @@ Usage: bin/marathon_deploy [options]
|
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
### Example Deployfile
|
|
55
|
-
By default, a file called 'deploy.
|
|
55
|
+
By default, a file called 'deploy.yml' is searched for in the current directory where deploy.rb is run from. An alternative file name can be provided with the -f parameter.
|
|
56
56
|
|
|
57
57
|
The file format must conform to the [Marathon API specification](https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps)
|
|
58
58
|
|
|
@@ -97,7 +97,7 @@ healthChecks:
|
|
|
97
97
|
As a convenience, the provided json2yaml.rb script can convert a JSON file to the arguably more human-readable YAML format:
|
|
98
98
|
|
|
99
99
|
```
|
|
100
|
-
$json2yaml
|
|
100
|
+
$json2yaml marathon-webapp.json > marathon-webapp.yaml
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
### Parsing a file with macro expansion from ENV variables
|
|
@@ -105,7 +105,7 @@ $json2yaml.rb marathon-webapp.json > marathon-webapp.yaml
|
|
|
105
105
|
A helper script which takes a file and replaces all macros having the format %%MACRO%% with the values from ENV variables. Script will fail if there are no ENV values for macro names contained in the template.
|
|
106
106
|
|
|
107
107
|
```
|
|
108
|
-
$expand_macros
|
|
108
|
+
$expand_macros -h
|
|
109
109
|
Usage: bin/expand_macros.rb [options]
|
|
110
110
|
-o, --outfile OUTFILE Default: STDOUT
|
|
111
111
|
-l, --logfile LOGFILE Default: STDOUT
|