marathon_deploy 0.1.11 → 0.1.14
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/.travis.yml +4 -0
- data/README.md +4 -1
- data/Rakefile +1 -0
- data/lib/marathon_deploy/version.rb +1 -1
- data/test/application_test.rb +10 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77f6418cc9a7eeba91def99ea23db090c6df1658
|
4
|
+
data.tar.gz: 258cdefbcf8cdc383f9ed2bf33417de60389f864
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba822ca330a6c3a9cf0f5a64edf0c55a033ad52ccf12ba3e14ffc5be6610e33dc10693778b08ddd6dfc51bb93ae8a69df32886fc2fa3dd2f653ff02aa2f608e2
|
7
|
+
data.tar.gz: e90a93c140570233edd0d0beb219c10c42b8c31795358b23bbd9056d7949a9455c7e8847c626ef88c0f3563c23d322d11c14f2fb5e8af854f453410bc57cd2fa
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+

|
2
|
+
|
1
3
|
# Marathon Deploy
|
2
4
|
|
3
5
|
A [Marathon](https://mesosphere.github.io/marathon/) command-line deployment tool in Ruby. Takes a json or yaml file describing an application and pushes it to the Marathon [REST API](https://mesosphere.github.io/marathon/docs/rest-api.html)
|
@@ -7,7 +9,8 @@ A [Marathon](https://mesosphere.github.io/marathon/) command-line deployment too
|
|
7
9
|
* Checks for existing deployment of application before starting new deployment
|
8
10
|
* Polls for Healthcheck results after deployment
|
9
11
|
* Proper exit codes for easier integration with Jenkins automated pipelines
|
10
|
-
* Deploy file macro substitution using values from ENV variables (
|
12
|
+
* Deploy file macro substitution using values from locally set environment (ENV) variables (macros have the format %%MACRO_NAME%% and must match the environment variable name)
|
13
|
+
* Inject environment variables into a deployment when local environment variables with the format: MARATHON_DEPLOY_FOO=BAR are set (MARATHON_DEPLOY prefix will be removed in final json payload).
|
11
14
|
* PRODUCTION / PREPRODUCTION modes (specified with --environment)
|
12
15
|
* Rolling upgrade deployment strategy (Marathon default)
|
13
16
|
|
data/Rakefile
CHANGED
data/test/application_test.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
|
1
|
+
require_relative 'test_helper'
|
2
2
|
|
3
3
|
class ApplicationTest < Minitest::Test
|
4
|
+
|
4
5
|
def setup
|
5
6
|
$LOG = Logger.new(STDOUT)
|
6
7
|
$LOG.level = Logger::INFO
|
@@ -25,4 +26,12 @@ class ApplicationTest < Minitest::Test
|
|
25
26
|
assert_equal(@release_version,application.env[:RELEASE_VERSION])
|
26
27
|
end
|
27
28
|
|
29
|
+
def test_force_new_application
|
30
|
+
app = MarathonDeploy::Application.new(:deployfile => @yml, :force => true)
|
31
|
+
unique_id = app.env['UNIQUE_ID']
|
32
|
+
msg = "UNIQUE_ID environment variable was not set properly"
|
33
|
+
refute_nil(unique_id,msg)
|
34
|
+
refute_empty(unique_id,msg)
|
35
|
+
end
|
36
|
+
|
28
37
|
end
|
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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Colby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger
|
@@ -105,6 +105,7 @@ extensions: []
|
|
105
105
|
extra_rdoc_files: []
|
106
106
|
files:
|
107
107
|
- ".gitignore"
|
108
|
+
- ".travis.yml"
|
108
109
|
- Gemfile
|
109
110
|
- LICENSE.txt
|
110
111
|
- NOTES
|
@@ -196,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
197
|
version: '0'
|
197
198
|
requirements: []
|
198
199
|
rubyforge_project:
|
199
|
-
rubygems_version: 2.4.
|
200
|
+
rubygems_version: 2.4.5
|
200
201
|
signing_key:
|
201
202
|
specification_version: 4
|
202
203
|
summary: Mesos/Marathon deployment tool.
|