athlete 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/athlete/deployment.rb +9 -0
- data/lib/athlete/version.rb +1 -1
- 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: 5058afe5c147ee52accce0b324b81192f98bf84a
|
4
|
+
data.tar.gz: 18836819e7d4bc21baf810d67f42dc7b9f704383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06703c245c6e89fb3b1805961f8f9ff93203e701f5f6c101462a6a78266bdc5574ba2236cf7a8775ce743f1107247a23789ece0564d9340c2e9c7e426b1c9e50
|
7
|
+
data.tar.gz: 4120621c34e35202a73b61ab7a22b5b795a0c3e903589d3bd4dc0308de59de6a9db5dcca14e0015a9397538c40e99fb2fc39cdc24d9091d0bedc0618e504a514
|
data/lib/athlete/deployment.rb
CHANGED
@@ -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'] = {
|
data/lib/athlete/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|