marathon-api 1.2.2 → 1.2.3
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 +4 -4
- data/README.md +1 -1
- data/bin/marathon +2 -2
- data/lib/marathon/deployment_info.rb +1 -1
- 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: 28dcd2c0b47848c70211f598d165716ef96d7ef0
|
4
|
+
data.tar.gz: 5f31cb8385e8bd6fc9247c2b2fe2d7e5b3af0c76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 175e215bef8474613f07b62571cd1c5a9b205b478f96d874ccc604c3e223595f3b6ff34173b3ed14c7fc48a75b9ce46ec60881ff709c1787211fa0180b1a1447
|
7
|
+
data.tar.gz: fc39da688591bd66576a151bae89044676a325c0e21070bf486706ed5d4db0137f60805e20962382b98ecd39396c01f003c846cd3503414535401c6577dcb76d
|
data/README.md
CHANGED
@@ -78,7 +78,7 @@ require 'marathon'
|
|
78
78
|
Marathon.info
|
79
79
|
# => {"name"=>"marathon", "http_config"=>{"assets_path"=>null, "http_port"=>8080, "https_port"=>8443}, "frameworkId"=>"20150228-110436-16842879-5050-2169-0001", "leader"=>null, "event_subscriber"=>null, "marathon_config"=>{"local_port_max"=>20000, "local_port_min"=>10000, "hostname"=>"mesos", "master"=>"zk://localhost:2181/mesos", "reconciliation_interval"=>300000, "mesos_role"=>null, "task_launch_timeout"=>300000, "reconciliation_initial_delay"=>15000, "ha"=>true, "failover_timeout"=>604800, "checkpoint"=>true, "executor"=>"//cmd", "marathon_store_timeout"=>2000, "mesos_user"=>"root"}, "version"=>"0.8.0", "zookeeper_config"=>{"zk_path"=>"/marathon", "zk"=>null, "zk_timeout"=>10, "zk_hosts"=>"localhost:2181", "zk_future_timeout"=>{"duration"=>10}}, "elected"=>false}
|
80
80
|
|
81
|
-
|
81
|
+
Marathon.ping
|
82
82
|
# => 'pong'
|
83
83
|
|
84
84
|
```
|
data/bin/marathon
CHANGED
@@ -4,7 +4,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'maratho
|
|
4
4
|
require 'trollop'
|
5
5
|
require 'json'
|
6
6
|
|
7
|
-
SUB_COMMANDS = %w[kill kill_tasks start scale list list_tasks
|
7
|
+
SUB_COMMANDS = %w[kill kill_tasks start scale list list_tasks]
|
8
8
|
ATTRIBUTES = [:id, :cmd, :executor, :instances, :cpus, :mem, :uris]
|
9
9
|
DEFAULT_APP_OPTS = {
|
10
10
|
:instances => 1,
|
@@ -18,6 +18,7 @@ def print_apps(apps)
|
|
18
18
|
puts "No apps currently running"
|
19
19
|
else
|
20
20
|
apps.each do |app|
|
21
|
+
app.refresh
|
21
22
|
puts app.to_pretty_s
|
22
23
|
puts
|
23
24
|
end
|
@@ -134,7 +135,6 @@ Available commands:
|
|
134
135
|
list Show a list of running apps and their options.
|
135
136
|
list_tasks Show a list of an app's running tasks.
|
136
137
|
scale Scale the number of app instances.
|
137
|
-
search Search the current list of apps.
|
138
138
|
start Start a new app.
|
139
139
|
|
140
140
|
Global options:
|
@@ -19,7 +19,7 @@ class Marathon::DeploymentInfo < Marathon::Base
|
|
19
19
|
Timeout::timeout(timeout) do
|
20
20
|
deployments = nil
|
21
21
|
while deployments.nil? or deployments.select{|e| e.id == deploymentId}.size > 0 do
|
22
|
-
sleep(RECHECK_INTERVAL)
|
22
|
+
sleep(RECHECK_INTERVAL)
|
23
23
|
deployments = Marathon::Deployment.list
|
24
24
|
end
|
25
25
|
end
|
data/lib/marathon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marathon-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Bechstein
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|