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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44f3a4ae779cc89af86b8cf91a1630456a25f1a0
4
- data.tar.gz: 96c9f1840723da771eb485c81332009ce5ef1e68
3
+ metadata.gz: 77f6418cc9a7eeba91def99ea23db090c6df1658
4
+ data.tar.gz: 258cdefbcf8cdc383f9ed2bf33417de60389f864
5
5
  SHA512:
6
- metadata.gz: 65228d522cb9b9d428b0502f8410bdc82a4464899d4907f30d0fc2f050973090df6fa8d60cb41e7bdfdbb05f04d6334137577db372eebe903ee71cb8e878008b
7
- data.tar.gz: 34bd81cadc48f516ce49507985a1aa6a10465b64a69ba296b72670e12578d6bedbd621af5c02d2a5984961de3f372abe237eab17e294f54635cbb0a82e545bdd
6
+ metadata.gz: ba822ca330a6c3a9cf0f5a64edf0c55a033ad52ccf12ba3e14ffc5be6610e33dc10693778b08ddd6dfc51bb93ae8a69df32886fc2fa3dd2f653ff02aa2f608e2
7
+ data.tar.gz: e90a93c140570233edd0d0beb219c10c42b8c31795358b23bbd9056d7949a9455c7e8847c626ef88c0f3563c23d322d11c14f2fb5e8af854f453410bc57cd2fa
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ ruby:
3
+ - 2.2
4
+ # default rake task is test
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ ![Travis Build Status](https://travis-ci.org/joncolby/marathon_deploy.svg?branch=master)
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 (eg, %%MACRO_NAME%%)
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
@@ -6,3 +6,4 @@ Rake::TestTask.new do |t|
6
6
  t.pattern = "test/*_test.rb"
7
7
  end
8
8
 
9
+ task :default => :test
@@ -1,3 +1,3 @@
1
1
  module MarathonDeploy
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.14"
3
3
  end
@@ -1,6 +1,7 @@
1
- require 'test_helper'
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.11
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-14 00:00:00.000000000 Z
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.6
200
+ rubygems_version: 2.4.5
200
201
  signing_key:
201
202
  specification_version: 4
202
203
  summary: Mesos/Marathon deployment tool.