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.
@@ -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
- command << [ "-i", config.keys ] if config.keys
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
- command << [ "-i", config.proxy_keys ] if config.proxy_keys
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'"
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "1.5.4"
4
+ VERSION = "1.5.5"
5
5
 
6
6
  end
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
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: -4098807808586701769
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: -4098807808586701769
293
+ hash: -2248505364937990165
294
294
  requirements: []
295
295
  rubyforge_project:
296
296
  rubygems_version: 1.8.25