marathon_client 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/marathon +3 -0
- data/lib/marathon/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9431a0e13940cf824ecacfc1f1e48d0ae35a889b
|
4
|
+
data.tar.gz: 48751bb7ef3d312c778988c13fdec580e4ccdbdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75bf0c50d67d2423b2eedfb57c30a563be730ea793fe03dd521fd260f8f2a46c82a5f5c67171b3c98902b48a9f555b6a6e27eebe3ab2970682e9564ff9ff555e
|
7
|
+
data.tar.gz: b237e8daad6f7b553bb32401eeeb9c074ff0c65e78b5c1b062784e9f56dbfebe70e816d52039db52afe1eb5d6f07b70eb91aae1830fa69b1d7b4ccba64995ba3
|
data/bin/marathon
CHANGED
@@ -41,6 +41,7 @@ cmd_opts = case cmd
|
|
41
41
|
opt :uri, 'URIs to download and unpack into the working directory.', :short => '-u', :type => :strings
|
42
42
|
opt :env, 'Environment variables to add to the process, as NAME=VALUE.', :short => '-e', :type => :strings
|
43
43
|
opt :constraint, 'Placement constraint for tasks, e.g. hostname:UNIQUE or rackid:CLUSTER', :type => :strings
|
44
|
+
opt :ports, 'Port(s) to reserve for this app', :short => '-p', :type => :integers
|
44
45
|
end
|
45
46
|
when 'scale'
|
46
47
|
Trollop.options do
|
@@ -74,6 +75,7 @@ def handle_listing(res)
|
|
74
75
|
puts "Instances: #{app['instances']}"
|
75
76
|
puts "CPUs: #{app['cpus']}"
|
76
77
|
puts "Memory: #{app['mem']} MB"
|
78
|
+
puts "Ports: #{app['ports'] * ', '}"
|
77
79
|
app['uris'].each do |uri|
|
78
80
|
puts "URI: #{uri}"
|
79
81
|
end
|
@@ -107,6 +109,7 @@ when 'start'
|
|
107
109
|
:constraints => (cmd_opts[:constraint] || []).map { |c| c.split(':') }
|
108
110
|
}
|
109
111
|
app_opts[:executor] = cmd_opts[:executor] unless cmd_opts[:executor] == nil
|
112
|
+
app_opts[:ports] = cmd_opts[:ports] unless cmd_opts[:ports] == nil
|
110
113
|
puts "Starting app '#{cmd_opts[:id]}'"
|
111
114
|
res = marathon.start(cmd_opts[:id], app_opts)
|
112
115
|
puts res
|
data/lib/marathon/version.rb
CHANGED
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobi Knaup
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: httparty
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.11.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.11.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: Command line client for the Marathon scheduler. Marathon is a Mesos scheduler
|
@@ -75,7 +75,7 @@ executables:
|
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
-
- .gitignore
|
78
|
+
- ".gitignore"
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE.txt
|
81
81
|
- README.md
|
@@ -96,17 +96,17 @@ require_paths:
|
|
96
96
|
- lib
|
97
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
|
-
- -
|
99
|
+
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: '0'
|
102
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- -
|
104
|
+
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.2.1
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Command line client for the Marathon scheduler.
|