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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cca83ebf910b41b549cd509b78dc7bd90d122d16
4
- data.tar.gz: 6a38ec82298d05d1268359ec8e6aa952f3ba3ae9
3
+ metadata.gz: 28dcd2c0b47848c70211f598d165716ef96d7ef0
4
+ data.tar.gz: 5f31cb8385e8bd6fc9247c2b2fe2d7e5b3af0c76
5
5
  SHA512:
6
- metadata.gz: 4bee9d73f899e086fb3135ed861ebfad0aa6963ec7403a63ce4ad1eab9c8d18fd60d35676e2b1b1d99b3fae1b78430db27d24e827dad575a210000198d74cae7
7
- data.tar.gz: e80bbe801c925548ad41a970911d39d55777c11823ff6f961c4cb93b65e6c1198fdb34c1caa25b5a7d26770bc0549613721df3c270703656a8c5c14c1936e501
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
- Docker.ping
81
+ Marathon.ping
82
82
  # => 'pong'
83
83
 
84
84
  ```
@@ -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 search]
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) unless deployments.nil?
22
+ sleep(RECHECK_INTERVAL)
23
23
  deployments = Marathon::Deployment.list
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Marathon
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.3'
3
3
  end
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.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-03-24 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json