knuckle_cluster 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/knuckle_cluster/scp.rb +5 -1
- data/lib/knuckle_cluster/version.rb +1 -1
- 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: 2c1f2f78ec6c696617524b8be22e0a8e949bfc35
|
4
|
+
data.tar.gz: cceeab9f31f87b0e482d5e7962ab47975f69eb67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d23cf89b1eae74b4a0828de5fe3e062ebf9a5b1453d677f3bc7a1facb6cc8cb1af0288298b87f69209267146db008e5e3f1750a188070190210a57e0f72d7c40
|
7
|
+
data.tar.gz: b2cadfff658db71c1fedbae7e621827491c521fad4bc647e5b2b6e38244eba3611a419a5249695eb2f21768df973fa2b2ec66df0684ff647140b48d272121e17
|
data/lib/knuckle_cluster/scp.rb
CHANGED
@@ -63,7 +63,11 @@ module KnuckleCluster
|
|
63
63
|
ip = bastion ? agent.private_ip : agent.public_ip
|
64
64
|
command = "scp"
|
65
65
|
command += " -i #{rsa_key_location}" if rsa_key_location
|
66
|
-
|
66
|
+
if bastion.is_a? String
|
67
|
+
command += " -o ProxyCommand='ssh -qxT #{bastion} nc #{ip} 22'"
|
68
|
+
elsif bastion.is_a? Hash
|
69
|
+
command += " -o Proxycommand='ssh -qxt #{bastion[:host]} -l#{bastion[:username]} -i #{bastion[:rsa_key_location]} nc #{ip} 22'"
|
70
|
+
end
|
67
71
|
command
|
68
72
|
end
|
69
73
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knuckle_cluster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Envato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|