athlete 0.0.2 → 0.0.3

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: bbb34150f69a7c76456d41d3487534c28fed756f
4
- data.tar.gz: 149101dc9564e8c05a1aeb50a95c79c93124fe6f
3
+ metadata.gz: 5058afe5c147ee52accce0b324b81192f98bf84a
4
+ data.tar.gz: 18836819e7d4bc21baf810d67f42dc7b9f704383
5
5
  SHA512:
6
- metadata.gz: 83908ff4ec450266820d72dd81eabc599e603f3ccfcfab51acd9b6a28abefae5dae715d13c78c62de33f7806f6d5b26cedf4af504034b0c3a0806f3c9f6c13bc
7
- data.tar.gz: 77c0d27d2f6d38b632f211576f4a4428ddfb5f39996406c23b7a28ff592adc83713c9168d9e07da0572f5e88b813115139058a3e41926e9cc5d1d12c6f0b489e
6
+ metadata.gz: 06703c245c6e89fb3b1805961f8f9ff93203e701f5f6c101462a6a78266bdc5574ba2236cf7a8775ce743f1107247a23789ece0564d9340c2e9c7e426b1c9e50
7
+ data.tar.gz: 4120621c34e35202a73b61ab7a22b5b795a0c3e903589d3bd4dc0308de59de6a9db5dcca14e0015a9397538c40e99fb2fc39cdc24d9091d0bedc0618e504a514
@@ -21,6 +21,7 @@ module Athlete
21
21
  environment_variables
22
22
  instances
23
23
  minimum_health_capacity
24
+ port_mappings
24
25
  }
25
26
 
26
27
  # Define properties that cannot be overridden or inherited
@@ -32,6 +33,7 @@ module Athlete
32
33
  command
33
34
  arguments
34
35
  environment_variables
36
+ port_mappings
35
37
  }
36
38
 
37
39
  def initialize
@@ -105,6 +107,9 @@ module Athlete
105
107
  # Arguments must be in an array
106
108
  error << "The arguments parameter must be specified as an array" if @arguments && !@arguments.kind_of?(Array)
107
109
 
110
+ # Port mappings must be an array (of hashes but let's do a basic check)
111
+ error << "The port_mappings parameter must be an array of hashes" if @port_mappings && !@port_mappings.kind_of?(Array)
112
+
108
113
  unless errors.empty?
109
114
  raise ConfigurationInvalidException, errors
110
115
  end
@@ -257,6 +262,10 @@ module Athlete
257
262
  }
258
263
  end
259
264
 
265
+ if @port_mappings && !@port_mappings.empty?
266
+ json['portMappings'] = @port_mappings
267
+ end
268
+
260
269
  if @image_name || @build_name
261
270
  image = @image_name || linked_build.final_image_name
262
271
  json['container'] = {
@@ -1,3 +1,3 @@
1
1
  module Athlete
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: athlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Sykes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-16 00:00:00.000000000 Z
11
+ date: 2015-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler