ztk 1.10.1 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ztk/ssh.rb +1 -3
- data/lib/ztk/ssh/private.rb +8 -4
- data/lib/ztk/version.rb +1 -1
- data/spec/support/before_install.sh +4 -0
- metadata +3 -3
data/lib/ztk/ssh.rb
CHANGED
@@ -164,9 +164,7 @@ module ZTK
|
|
164
164
|
:ignore_exit_status => false,
|
165
165
|
:request_pty => true,
|
166
166
|
:exit_code => 0,
|
167
|
-
:silence => false
|
168
|
-
:keys => Array.new,
|
169
|
-
:proxy_keys => Array.new
|
167
|
+
:silence => false
|
170
168
|
}.merge(configuration))
|
171
169
|
|
172
170
|
config.ui.logger.debug { "config=#{config.send(:table).inspect}" }
|
data/lib/ztk/ssh/private.rb
CHANGED
@@ -53,12 +53,16 @@ module ZTK
|
|
53
53
|
|
54
54
|
# Iterate the keys and proxy_keys, converting them as needed.
|
55
55
|
def process_keys
|
56
|
-
config.keys
|
57
|
-
|
56
|
+
if (!config.keys.nil? && !config.keys.empty?)
|
57
|
+
config.keys = [config.keys].flatten.compact.collect do |key|
|
58
|
+
process_key(key)
|
59
|
+
end
|
58
60
|
end
|
59
61
|
|
60
|
-
config.proxy_keys
|
61
|
-
|
62
|
+
if (!config.proxy_keys.nil? && !config.proxy_keys.empty?)
|
63
|
+
config.proxy_keys = [config.proxy_keys].flatten.compact.collect do |proxy_key|
|
64
|
+
process_key(proxy_key)
|
65
|
+
end
|
62
66
|
end
|
63
67
|
end
|
64
68
|
|
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.10.
|
4
|
+
version: 1.10.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -307,7 +307,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
307
307
|
version: '0'
|
308
308
|
segments:
|
309
309
|
- 0
|
310
|
-
hash:
|
310
|
+
hash: -1699314525836609404
|
311
311
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
312
312
|
none: false
|
313
313
|
requirements:
|
@@ -316,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
316
316
|
version: '0'
|
317
317
|
segments:
|
318
318
|
- 0
|
319
|
-
hash:
|
319
|
+
hash: -1699314525836609404
|
320
320
|
requirements: []
|
321
321
|
rubyforge_project:
|
322
322
|
rubygems_version: 1.8.25
|