marathon-api 1.2.1 → 1.2.2

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: f6f544d86ac002272d9ca88120d08ac5f962dcdf
4
- data.tar.gz: b162427fda27112cf9c3ff72963e281aa54d8705
3
+ metadata.gz: cca83ebf910b41b549cd509b78dc7bd90d122d16
4
+ data.tar.gz: 6a38ec82298d05d1268359ec8e6aa952f3ba3ae9
5
5
  SHA512:
6
- metadata.gz: cb2b6db99259b821d7ee0705fc0d5747fcfd385f02bbdde2c1761438ac28ceecce32b5e0c8b1f703834ce51a096c9b851735fed10ad7d0a5f1b61afec5c2e4f3
7
- data.tar.gz: 9348d26af73d194b4176be16be50c55963cc0d2cca9d544189e1ddf17d014486c96eed30c92c4c6b340f805836382f499876a6998708f7a957debf970ab6ffec
6
+ metadata.gz: 4bee9d73f899e086fb3135ed861ebfad0aa6963ec7403a63ce4ad1eab9c8d18fd60d35676e2b1b1d99b3fae1b78430db27d24e827dad575a210000198d74cae7
7
+ data.tar.gz: e80bbe801c925548ad41a970911d39d55777c11823ff6f961c4cb93b65e6c1198fdb34c1caa25b5a7d26770bc0549613721df3c270703656a8c5c14c1936e501
data/bin/marathon CHANGED
@@ -56,10 +56,10 @@ def subcmd_start(cmd_opts)
56
56
  end
57
57
  app_opts.merge!(cmd_opts.select { |k,_| ATTRIBUTES.include?(k) and cmd_opts["#{k.id2name}_given".to_sym] })
58
58
  if cmd_opts[:env]
59
- app_opts[:env] = Hash[cmd_opts[:env].map { |e| e.split('=', 2) }]
59
+ app_opts[:env] = app_opts.fetch(:env, {}).merge(Hash[cmd_opts[:env].map { |e| e.split('=', 2) }])
60
60
  end
61
61
  if cmd_opts[:constraints]
62
- app_opts[:constraints] = cmd_opts[:constraint].map { |c| c.split(':') }
62
+ app_opts[:constraints] = app_opts.fetch(:constraints, {}).merge(cmd_opts[:constraint].map { |c| c.split(':') })
63
63
  end
64
64
  app = Marathon::App.new(app_opts)
65
65
  puts "Starting app '#{app}'"
@@ -140,7 +140,7 @@ Available commands:
140
140
  Global options:
141
141
  EOS
142
142
 
143
- opt :url, 'Marathon host (default http://localhost:8080, or MARATHON_HOST)',
143
+ opt :url, 'Marathon host (default http://localhost:8080, or MARATHON_URL)',
144
144
  :short => '-M', :type => String
145
145
  opt :username, 'User name to authenticate against Marathon (optional, default unset, or MARATHON_USER).',
146
146
  :short => '-U', :type => String
@@ -1,3 +1,3 @@
1
1
  module Marathon
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
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.1
4
+ version: 1.2.2
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-18 00:00:00.000000000 Z
11
+ date: 2015-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json