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 +4 -4
- data/bin/marathon +2 -0
- data/lib/marathon/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: 2187f15b504a4a208ad5c389ab2fc92c7847f64b
|
4
|
+
data.tar.gz: dd4d67747fbbbbf02b6ebc5cd138fce4ecffdb61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/marathon/version.rb
CHANGED
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.
|
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
|
+
date: 2013-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|