athlete 0.0.3 → 0.0.4

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: 5058afe5c147ee52accce0b324b81192f98bf84a
4
- data.tar.gz: 18836819e7d4bc21baf810d67f42dc7b9f704383
3
+ metadata.gz: e50018b6e8df3e71a3543f1ac3a5e255b01b9126
4
+ data.tar.gz: fefd88c7fcbf2cbb9651c0cd08d9e0b3c392a2ac
5
5
  SHA512:
6
- metadata.gz: 06703c245c6e89fb3b1805961f8f9ff93203e701f5f6c101462a6a78266bdc5574ba2236cf7a8775ce743f1107247a23789ece0564d9340c2e9c7e426b1c9e50
7
- data.tar.gz: 4120621c34e35202a73b61ab7a22b5b795a0c3e903589d3bd4dc0308de59de6a9db5dcca14e0015a9397538c40e99fb2fc39cdc24d9091d0bedc0618e504a514
6
+ metadata.gz: ac1b8c33070ca8c3a6514355330acf4bd242e506afb60ce225113b12a0fc710364fc3f422a36760438da62ea6cedd1aa30ff026daf5530cd7db4db45713eb0d8
7
+ data.tar.gz: f87423727c8d257a03efc3d34e0c12960b8f024ed237f6017f23e855d661f0f48f29b5862874e7a706c6a362dde9dbedf435a4506eef5701ddea347f39e56e11
@@ -262,10 +262,6 @@ module Athlete
262
262
  }
263
263
  end
264
264
 
265
- if @port_mappings && !@port_mappings.empty?
266
- json['portMappings'] = @port_mappings
267
- end
268
-
269
265
  if @image_name || @build_name
270
266
  image = @image_name || linked_build.final_image_name
271
267
  json['container'] = {
@@ -275,7 +271,13 @@ module Athlete
275
271
  'network' => 'BRIDGE'
276
272
  }
277
273
  }
274
+
275
+ if @port_mappings && !@port_mappings.empty?
276
+ json['container']['docker']['portMappings'] = @port_mappings
277
+ end
278
+
278
279
  end
280
+
279
281
  debug("Generated Marathon JSON: #{json.to_json}")
280
282
  json
281
283
  end
@@ -1,3 +1,3 @@
1
1
  module Athlete
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: athlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Sykes