marathon_client 0.0.8 → 0.0.9

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: 7346f0cdfc6b0093c26b1b473dafcc7423059103
4
- data.tar.gz: ccc9e7359493d17345e6539f4d9786b8999cc88b
3
+ metadata.gz: f0718e26141aec8cea9dcdb90f4cfb778e8f526c
4
+ data.tar.gz: c29f5c7a4b25432c0dd81522c911f10937176a27
5
5
  SHA512:
6
- metadata.gz: 3bd8518f484ecf9a56724876f885a122a5e38c9ef438ef4e456b1ff19306b113321cb1b37ceb64ed2a3303a603cd66eef154e9968002541e178cd5aea19afe1f
7
- data.tar.gz: aaf8ccc171a93924d1bfe760f730fc8e555f2dfb7dff7e8f8cc011a908efc4f542dc23dbc427d39f0607f03549d13e7d66e2698f9c0af908868785089e09f4e3
6
+ metadata.gz: 53958c6cd6e9adc408bd1f7fd01f1530acb84f9cfe70c5a5d33c67e77411f50fcea2f65fad46ae7d2c5e894119bc2cb3e0d5e8957887b954551fc43713a1ed80
7
+ data.tar.gz: 6a93f093622d71a876e3401eb2545ad17cf5b346ee927877dae234be4d832973697326e55bfb2118657f7eb66adb5e901760f97b3206d4d964b1bf9971d739b6
@@ -2,7 +2,10 @@ module Marathon
2
2
  class Client
3
3
  include HTTParty
4
4
 
5
- headers 'Content-Type' => 'application/json'
5
+ headers(
6
+ 'Content-Type' => 'application/json',
7
+ 'Accept' => 'application/json'
8
+ )
6
9
  query_string_normalizer proc { |query| MultiJson.dump(query) }
7
10
  maintain_method_across_redirects
8
11
  default_timeout 5
@@ -21,6 +24,14 @@ module Marathon
21
24
  wrap_request(:get, '/v1/apps')
22
25
  end
23
26
 
27
+ def endpoints(id = nil)
28
+ if id.nil?
29
+ wrap_request(:get, "/v1/endpoints")
30
+ else
31
+ wrap_request(:get, "/v1/endpoints/#{id}")
32
+ end
33
+ end
34
+
24
35
  def start(id, opts)
25
36
  body = opts.dup
26
37
  body[:id] = id
@@ -1,3 +1,3 @@
1
1
  module Marathon
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
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.8
4
+ version: 0.0.9
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-09-12 00:00:00.000000000 Z
11
+ date: 2013-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop