marathon_client 0.2.1 → 0.2.2

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: 53171e6715047b18e37963ba74ceede10e550017
4
- data.tar.gz: fb86411956e49e2e8beee8e91def241db5f7e0d2
3
+ metadata.gz: 2187f15b504a4a208ad5c389ab2fc92c7847f64b
4
+ data.tar.gz: dd4d67747fbbbbf02b6ebc5cd138fce4ecffdb61
5
5
  SHA512:
6
- metadata.gz: b858b6ad2485eadf7f52cca583da9d72889b0e05605ff71037f0da3aa04f3210d48a41f2fbafd3a79bf5b939d8c22296f1803d0b912176a74b1a6da9916bde91
7
- data.tar.gz: 6623e7a5c3464829edcef5976501cc4e8711f65a73002f00b990bc628d3bba7161bdcc7ea21953ce030c11bdaa6340078472f0073a0c8a5a1d66b599d04ed5b3
6
+ metadata.gz: e542d5efac51f633445fc487a9fcc647a321c89c208cdc8a76365852efb9a7e6ff8eca1fcc520d877c4cbbdf46e48edd388e59b03ca1aeae8898580c20e88d28
7
+ data.tar.gz: 56b3e75ea3216b7fd86e2ea1d8101f11ed0d2c603cc7aa967285cd6753c72d97c0b7304b99fb763b01aa2265cece416fee85bdb7240308d33a0fa9d00c8d483b
data/bin/marathon CHANGED
@@ -34,6 +34,7 @@ cmd_opts = case cmd
34
34
  Trollop.options do
35
35
  opt :id, 'A unique identifier for the app.', :short => '-i', :type => String
36
36
  opt :command, 'The command to start the app.', :short => '-C', :type => String
37
+ opt :executor, 'The mesos executor to be used to launch the app.', :short => '-X', :type => String
37
38
  opt :num_instances, 'The number of instances to run (default 1).', :short => '-n', :type => Integer
38
39
  opt :cpus, 'The number of CPUs to give to this app, can be a fraction (default 1.0).', :short => '-c', :type => Float
39
40
  opt :mem, 'The memory limit for this app, in MB, can be a fraction (default 10.0).', :short => '-m', :type => Float
@@ -105,6 +106,7 @@ when 'start'
105
106
  :mem => cmd_opts[:mem] || 10.0,
106
107
  :constraints => (cmd_opts[:constraint] || []).map { |c| c.split(':') }
107
108
  }
109
+ app_opts[:executor] = cmd_opts[:executor] unless cmd_opts[:executor] == nil
108
110
  puts "Starting app '#{cmd_opts[:id]}'"
109
111
  res = marathon.start(cmd_opts[:id], app_opts)
110
112
  puts res
@@ -1,3 +1,3 @@
1
1
  module Marathon
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marathon_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobi Knaup
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-23 00:00:00.000000000 Z
11
+ date: 2013-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop