ztk 1.5.4 → 1.5.5
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.
- data/lib/ztk/ssh/command.rb +6 -2
- data/lib/ztk/version.rb +1 -1
- metadata +3 -3
data/lib/ztk/ssh/command.rb
CHANGED
@@ -19,7 +19,9 @@ module ZTK
|
|
19
19
|
command << [ "-o", "KeepAlive=yes" ]
|
20
20
|
command << [ "-o", "ServerAliveInterval=60" ]
|
21
21
|
command << [ "-o", %(ProxyCommand="#{proxy_command}") ] if config.proxy_host_name
|
22
|
-
|
22
|
+
!config.keys.nil? and !config.keys.empty? and [config.keys].flatten.compact.each do |key|
|
23
|
+
command << [ "-i", key ]
|
24
|
+
end
|
23
25
|
command << [ "-p", config.port ] if config.port
|
24
26
|
command << "#{config.user}@#{config.host_name}"
|
25
27
|
command = command.flatten.compact.join(' ')
|
@@ -44,7 +46,9 @@ module ZTK
|
|
44
46
|
command << [ "-o", "StrictHostKeyChecking=no" ]
|
45
47
|
command << [ "-o", "KeepAlive=yes" ]
|
46
48
|
command << [ "-o", "ServerAliveInterval=60" ]
|
47
|
-
|
49
|
+
!config.proxy_keys.nil? and !config.proxy_keys.empty? and [config.proxy_keys].flatten.compact.each do |proxy_key|
|
50
|
+
command << [ "-i", proxy_key ]
|
51
|
+
end
|
48
52
|
command << [ "-p", config.proxy_port ] if config.proxy_port
|
49
53
|
command << "#{config.proxy_user}@#{config.proxy_host_name}"
|
50
54
|
command << "'/usr/bin/env nc %h %p'"
|
data/lib/ztk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ztk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -281,7 +281,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
281
281
|
version: '0'
|
282
282
|
segments:
|
283
283
|
- 0
|
284
|
-
hash: -
|
284
|
+
hash: -2248505364937990165
|
285
285
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
286
|
none: false
|
287
287
|
requirements:
|
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
290
290
|
version: '0'
|
291
291
|
segments:
|
292
292
|
- 0
|
293
|
-
hash: -
|
293
|
+
hash: -2248505364937990165
|
294
294
|
requirements: []
|
295
295
|
rubyforge_project:
|
296
296
|
rubygems_version: 1.8.25
|