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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d62a4cd536881a4d0f65dde8dc422b91f85b312
4
- data.tar.gz: b6b97438d7d6f6b2f48cc6f4c5c5be87a7a6b59d
3
+ metadata.gz: 56b7fcd0a0d4b27df9cb35818fa722d1028847d9
4
+ data.tar.gz: a46f1dca1c28aa7efca0ec8996a21d3a152a02ab
5
5
  SHA512:
6
- metadata.gz: e9156d23f9cfbf3eed44c4c9eafb24c973915fd75af1287e2738bebf4bf97e31730731edfccc734d6329e27d220de118bddae4254adeb833891a5a5545096da3
7
- data.tar.gz: 8c25bc4a90e734f95474df498ef01ccb83ff2845955c337738fde6c07b90b945782b33393cd71d49d95f36d40b0515e6d371f1a93d140a15d58dcab4d3277d02
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
- $ 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])
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
- return json[:healthChecks]
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
- return JSON.pretty_generate(@json)
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
- if (@json[:id])
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
- if (@json[:instances])
101
- return @json[:instances]
102
- end
98
+ @json[:instances]
103
99
  end
104
100
 
105
101
  end
@@ -1,3 +1,3 @@
1
1
  module MarathonDeploy
2
- VERSION = "0.1.17"
2
+ VERSION = "0.1.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marathon_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Colby