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 +4 -4
- data/lib/cartage/commands/remote.rb +2 -2
- data/lib/cartage/plugins/remote.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8a9ca685c50949d4d9a17645a1a5d142e8c407f
|
4
|
+
data.tar.gz: a8ceb0016d158e3dd81aab44ad825e820cfcb665
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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.
|
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.
|
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
|
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.
|
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-
|
11
|
+
date: 2016-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cartage
|