cartage-remote 2.2.beta2 → 2.2
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 +4 -4
- data/lib/cartage/plugins/remote.rb +1 -1
- data/lib/cartage/remote/host.rb +5 -2
- data/test/test_cartage_remote_host.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e95c99facdf565d35b12835bf33c1164a7a4c2941704dfaccd3aa218341b905
|
|
4
|
+
data.tar.gz: 3c36c7ac5585036bcc9983148d28cbf4a0c5189f5c788174208542435e8e2999
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a04a35df55dc0b86b5d955c4c790567b8b86a4feee1a533cb930fc971251cde0d038dd2e1b8632911baece7717e97f241c610e2005a73c5c934e462dab47a9a9
|
|
7
|
+
data.tar.gz: c8146631e9f383aec0644dc233c556929cb5cc42b9d92383194c04a5e71e6a8d966a1b1bd5a2b6d24f361342adcdceb8ffb0094bc105663432da192764d6d745
|
|
@@ -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.2
|
|
185
|
+
VERSION = '2.2' #:nodoc:
|
|
186
186
|
|
|
187
187
|
# Build on the remote server.
|
|
188
188
|
def build
|
data/lib/cartage/remote/host.rb
CHANGED
|
@@ -93,11 +93,14 @@ class Cartage::Remote::Host
|
|
|
93
93
|
ssh_config[:keys] = keys
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
base_options = { verify_host_key: true, port: port }
|
|
97
|
+
|
|
98
|
+
ssh_options = base_options.
|
|
99
|
+
merge(forward_agent: !!forward_agent).
|
|
97
100
|
merge(ssh_config).
|
|
98
101
|
delete_if { |_, v| v.nil? || (v.respond_to?(:empty?) && v.empty?) }
|
|
99
102
|
|
|
100
|
-
scp_options =
|
|
103
|
+
scp_options = base_options.
|
|
101
104
|
merge(ssh_config).
|
|
102
105
|
delete_if { |_, v| v.nil? || (v.respond_to?(:empty?) && v.empty?) }
|
|
103
106
|
|
|
@@ -134,7 +134,8 @@ describe 'Cartage::Remote::Host' do
|
|
|
134
134
|
assert_ssh_value 'haddress', :address
|
|
135
135
|
assert_ssh_value 'huser', :username
|
|
136
136
|
assert_ssh_option 'hport', :port
|
|
137
|
-
|
|
137
|
+
|
|
138
|
+
assert_ssh_option true, :verify_host_key
|
|
138
139
|
end
|
|
139
140
|
|
|
140
141
|
it 'uses the provided key_data if there is no host override' do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cartage-remote
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2
|
|
4
|
+
version: '2.2'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Austin Ziegler
|
|
@@ -281,9 +281,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
281
281
|
version: '2.0'
|
|
282
282
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
283
283
|
requirements:
|
|
284
|
-
- - "
|
|
284
|
+
- - ">="
|
|
285
285
|
- !ruby/object:Gem::Version
|
|
286
|
-
version:
|
|
286
|
+
version: '0'
|
|
287
287
|
requirements: []
|
|
288
288
|
rubyforge_project:
|
|
289
289
|
rubygems_version: 2.7.6
|