athlete 0.0.4 → 0.0.5

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: e50018b6e8df3e71a3543f1ac3a5e255b01b9126
4
- data.tar.gz: fefd88c7fcbf2cbb9651c0cd08d9e0b3c392a2ac
3
+ metadata.gz: f74d55a4478923c3c07d5e61b9ef1358db35eaa9
4
+ data.tar.gz: 905ece2227a28b8ad82f060b6bd82d7a80cb5f60
5
5
  SHA512:
6
- metadata.gz: ac1b8c33070ca8c3a6514355330acf4bd242e506afb60ce225113b12a0fc710364fc3f422a36760438da62ea6cedd1aa30ff026daf5530cd7db4db45713eb0d8
7
- data.tar.gz: f87423727c8d257a03efc3d34e0c12960b8f024ed237f6017f23e855d661f0f48f29b5862874e7a706c6a362dde9dbedf435a4506eef5701ddea347f39e56e11
6
+ metadata.gz: b0a784d3061bb66b7581e025310de7772a65d72ca4a543886355a2ab3a367c76d3aab615d45fa36bb88143dece13140e3d55fcd94c34935db0f6ab34a643dbb6
7
+ data.tar.gz: 628cd7c905077d07b04c3d5fd802ba9d484dcde5ba1d3d3a9d4becdc3cb2733f61326eb631cc586efd3d6b4632f3d2a11bb978722dca6b35a2c0f78784e7fe24
data/README.md CHANGED
@@ -256,6 +256,19 @@ This description is taken from the
256
256
  > then take the other half down and deploy the rest. A value of 0 means take all instances down
257
257
  > immediately and replace with the new application.
258
258
 
259
+ ##### `volumes`
260
+
261
+ An array of hashes, indicating how to mount volumes inside the container, specified
262
+ like this:
263
+
264
+ [
265
+ {
266
+ "containerPath" => "/somepath",
267
+ "hostPath" => "/some/other/path",
268
+ "mode" => "RW"
269
+ }
270
+ ]
271
+
259
272
  ## Contributing
260
273
 
261
274
  1. Fork it ( https://github.com/forward3d/athlete/fork )
@@ -22,6 +22,7 @@ module Athlete
22
22
  instances
23
23
  minimum_health_capacity
24
24
  port_mappings
25
+ volumes
25
26
  }
26
27
 
27
28
  # Define properties that cannot be overridden or inherited
@@ -34,6 +35,7 @@ module Athlete
34
35
  arguments
35
36
  environment_variables
36
37
  port_mappings
38
+ volumes
37
39
  }
38
40
 
39
41
  def initialize
@@ -276,6 +278,10 @@ module Athlete
276
278
  json['container']['docker']['portMappings'] = @port_mappings
277
279
  end
278
280
 
281
+ if @volumes
282
+ json['container']['volumes'] = @volumes
283
+ end
284
+
279
285
  end
280
286
 
281
287
  debug("Generated Marathon JSON: #{json.to_json}")
@@ -1,3 +1,3 @@
1
1
  module Athlete
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
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.4
4
+ version: 0.0.5
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-21 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler