cartage-remote 2.0.rc3 → 2.0.rc4

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: da9fbc6560ce08b5b26ceba6b9c70c5e707ac90c
4
- data.tar.gz: 5d77e60ebec928f1ba3999e937b3425c8cb4bf4c
3
+ metadata.gz: e8a9ca685c50949d4d9a17645a1a5d142e8c407f
4
+ data.tar.gz: a8ceb0016d158e3dd81aab44ad825e820cfcb665
5
5
  SHA512:
6
- metadata.gz: 459d6abaa67d9eb3b20f2c576e1646a89a609bdadb055f41fbe4e2087a7061303e51b1cb7edb23ad7f9ae89b4ea18f8efaed793f0ba0026d69f7953192bdc3cb
7
- data.tar.gz: fdc513def32368161ad6fcfec8a340c69f055f419dd02c11c01b3cec50a539deeb4f77c778d800470094bb0d7e959e260c1a1357f3c77d85bb8e86167660a8c0
6
+ metadata.gz: ab025de67b146237b122c52cac308636b9b85a6d006ea0af8992ae64bafab5b66e1eb7dd81795394f966d097e7100d795eb0bc9f525ee8c14f66d6b220c9d324
7
+ data.tar.gz: 29e53cd36db1476805c3b46c7b80794129b5e40ad918d2f0cf0f577d3da5a09b6149e24fd0e8728cb7feedd9740fabfc40279da6a8af099391f6619d80e9fc0b
@@ -30,7 +30,7 @@ configuration file.
30
30
  remote.action do |_global, options, _args|
31
31
  options[:host] = nil if options[:host] == :default
32
32
  config = cartage.config(for_plugin: :remote)
33
- server = (options[:host] || config.host || :default).to_sym
33
+ server = options[:host] || config.host || 'default'
34
34
 
35
35
  unless config.dig(:hosts, server)
36
36
  message = if options[:host] || config.host
@@ -41,7 +41,7 @@ configuration file.
41
41
  fail ArgumentError, message
42
42
  end
43
43
 
44
- config.server = server
44
+ config.host ||= server
45
45
  cartage.remote.build
46
46
  end
47
47
  end
@@ -182,7 +182,7 @@ class Cartage
182
182
  # bundle exec cartage --config-file %{config_file} pack &&
183
183
  # bundle exec cartage --config-file %{config_file} s3 put
184
184
  class Remote < Cartage::Plugin
185
- VERSION = '2.0.rc3' #:nodoc:
185
+ VERSION = '2.0.rc4' #:nodoc:
186
186
 
187
187
  # Build on the remote server.
188
188
  def build
@@ -366,7 +366,9 @@ cd #{paths.build_path} && git checkout #{cartage.release_hashref}
366
366
 
367
367
  config.hosts ||= OpenStruct.new
368
368
  default = Cartage::Remote::Host.new(config.server).to_hash
369
- config.hosts.default ||= OpenStruct.new(default)
369
+ config.hosts.default = OpenStruct.new(default)
370
+ config.host ||= 'default'
371
+
370
372
  config.delete_field(:server)
371
373
  end
372
374
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartage-remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.rc3
4
+ version: 2.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-29 00:00:00.000000000 Z
11
+ date: 2016-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cartage