marathon_client 0.0.5 → 0.0.6

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: 8e3ce7f792cc1d545d80d1eae6b63bbe3b594757
4
- data.tar.gz: 757b9d326e0288acf345cd02aa5f3485b94215ef
3
+ metadata.gz: 6764ad6e988acf5e3744c22312b145a8dd3b268a
4
+ data.tar.gz: fbe55345264c3fdf746d1230d3736d973c1ab548
5
5
  SHA512:
6
- metadata.gz: 0ff42e2baa6b5f338afc5dec6eaf13c16f70980f0ad48b4fc24f54309baad3ccecbcca5d3b4a9081b7dfda833f4ef87b6528ba99e749c345220375d56cf0de4c
7
- data.tar.gz: f3c4553819c9484c08140c0ec0e86e698aff9cbb4bf979e23b56f58e2c53ea7490bee7a01aa4e0b2de704b72926f18824bf42d98aae83ceb4ab212bf0aabf7db
6
+ metadata.gz: cd9f91dd8cf433da91477b328a7537540b58dbc8e4ba73d39f7d204ac80156a671f9a7073fb365b1a757570f61bee7526ac9e2a943d6fed9c721643021d6acc6
7
+ data.tar.gz: db9f41bc1a3dd5a661e11208284460787e74136beae7ab4adaa53b690e564a13ae476a5e0b5625a9df9f729627a0590b1ecd01b5a9fc9cd903842720305043f3
data/bin/marathon CHANGED
@@ -72,7 +72,7 @@ opts = Slop.parse(:help => true) do
72
72
 
73
73
  run do |opts, args|
74
74
  res = Marathon::Client.new(opts[:marathon_host]).list
75
- if res.ok?
75
+ if res.success?
76
76
  res.parsed_response.each do |app|
77
77
  puts "App ID: #{app['id']}"
78
78
  puts "Command: #{app['cmd']}"
@@ -9,12 +9,12 @@ module Marathon
9
9
  @error = error_message_from_response
10
10
  end
11
11
 
12
- def ok?
13
- @ok ||= !!@http && @http.success?
12
+ def success?
13
+ @http != nil && @http.success?
14
14
  end
15
15
 
16
16
  def error?
17
- !ok?
17
+ !success?
18
18
  end
19
19
 
20
20
  def parsed_response
@@ -28,7 +28,7 @@ module Marathon
28
28
  end
29
29
 
30
30
  def to_s
31
- if ok?
31
+ if success?
32
32
  "OK"
33
33
  else
34
34
  "ERROR: #{error}"
@@ -38,7 +38,7 @@ module Marathon
38
38
  private
39
39
 
40
40
  def error_message_from_response
41
- return if ok?
41
+ return if success?
42
42
  return if @http.nil?
43
43
  @http.body
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module Marathon
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
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.0.5
4
+ version: 0.0.6
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-08-14 00:00:00.000000000 Z
11
+ date: 2013-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop