marathon-template 0.0.9 → 0.0.10
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/lib/marathon-template/deploy.rb +11 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f4d41df15fa72ca3455cd22c26b7db28a39597a
|
|
4
|
+
data.tar.gz: 6ec0087b24f161f9b5c039ddaa0bfdf7d855490a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5823238f522b46366ea8867ad6661a9f8c062bed76cfd476882b6806e48f7698ecf500af027a8811634a4796a50651a71ef4afe1d2ee6f14219f406b28a76e8
|
|
7
|
+
data.tar.gz: 58a66a0bb80e5f1b7d1ce91b5ab3ff5b2a70003a1abe72b1d1203372f349b130c5fd6d78401b08f4d8bb7bccbbaabed04d7f073ab02a70b2ee7b90bc9ca6e018
|
|
@@ -106,10 +106,16 @@ module Marathon_template
|
|
|
106
106
|
app_name = values['app_name']
|
|
107
107
|
options = values['options']
|
|
108
108
|
servers = get_servers(app_name)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
if values['management_port']
|
|
110
|
+
LOG.info "#{app_name}: #{servers}"
|
|
111
|
+
servers.each do |host, port|
|
|
112
|
+
f.write "\tserver #{app_name}-#{host.split('_').last} #{host.split('_').first}:#{port[0]} #{options} #{port[1]}\n"
|
|
113
|
+
end
|
|
114
|
+
else
|
|
115
|
+
servers.each do |host, port|
|
|
116
|
+
f.write "\tserver #{app_name}-#{host.split('_').last} #{host.split('_').first}:#{port[0]} #{options}\n"
|
|
117
|
+
end
|
|
118
|
+
end
|
|
113
119
|
elsif values.kind_of?(Array)
|
|
114
120
|
values.each do |value|
|
|
115
121
|
f.write "\t#{setting} #{value}\n"
|
|
@@ -159,6 +165,7 @@ module Marathon_template
|
|
|
159
165
|
return_hash
|
|
160
166
|
rescue Exception => e
|
|
161
167
|
e.message
|
|
168
|
+
e.backtrace
|
|
162
169
|
end
|
|
163
170
|
end
|
|
164
171
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: marathon-template
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeff Malnick
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-07-
|
|
11
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|