knuckle_cluster 2.3.0 → 2.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6f39b842c827055e0c0966f03fff7a4e201b023
4
- data.tar.gz: 299b8fc8dcf5e90f111686faf98adadd4b078535
3
+ metadata.gz: 2c1f2f78ec6c696617524b8be22e0a8e949bfc35
4
+ data.tar.gz: cceeab9f31f87b0e482d5e7962ab47975f69eb67
5
5
  SHA512:
6
- metadata.gz: 9a238237ac947360cd94e17600dd0904dab91a298d850cdd63d8156c817015351786d67147319561671d8a8454c19b75289e551b6666d34a1571f087b889e1a5
7
- data.tar.gz: 4a93477e310c70decc1e510d0b899731599a621f38d493bc5da45b0e358951780de9bcd3920deaf999cceeecb568122604748ede1f6dcacaf13d5f0c8a73952e
6
+ metadata.gz: d23cf89b1eae74b4a0828de5fe3e062ebf9a5b1453d677f3bc7a1facb6cc8cb1af0288298b87f69209267146db008e5e3f1750a188070190210a57e0f72d7c40
7
+ data.tar.gz: b2cadfff658db71c1fedbae7e621827491c521fad4bc647e5b2b6e38244eba3611a419a5249695eb2f21768df973fa2b2ec66df0684ff647140b48d272121e17
@@ -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
- command += " -o ProxyCommand='ssh -qxT #{bastion} nc #{ip} 22'" if bastion
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
 
@@ -1,3 +1,3 @@
1
1
  module KnuckleCluster
2
- VERSION = '2.3.0'
2
+ VERSION = '2.3.1'
3
3
  end
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.0
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-18 00:00:00.000000000 Z
11
+ date: 2018-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler