marathon-template 0.0.9 → 0.0.10

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: 37c91f7a6747113bb782bf70d58268004c547037
4
- data.tar.gz: 14ed3073c1881891ab9d5e51ffb5ecde7c9ac246
3
+ metadata.gz: 9f4d41df15fa72ca3455cd22c26b7db28a39597a
4
+ data.tar.gz: 6ec0087b24f161f9b5c039ddaa0bfdf7d855490a
5
5
  SHA512:
6
- metadata.gz: 3b5698575e0d4736dd3fb51cd592528bc742c483f94ba242d52b6b8562f4237569ccfc016a478a9a44089d2b7e768b4eb810ba9ca833f383a20b23ff54b7aa43
7
- data.tar.gz: 0ed5014331e5bc57c232a30e24baaf7fc18148f83941ace001cc8450de3caa5240a3c076dff11d9421e03d88d951b6b8b7bf2b0ee4ab49b39491e019bd79ff25
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
- LOG.info "#{app_name}: #{servers}"
110
- servers.each do |host, port|
111
- f.write "\tserver #{app_name}-#{host.split('_').last} #{host.split('_').first}:#{port.first} #{options}\n"
112
- end
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.9
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-08 00:00:00.000000000 Z
11
+ date: 2015-07-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: