train-core 3.4.1 → 3.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/train/transports/ssh_connection.rb +9 -4
- data/lib/train/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5814c4a28a344d48cc8853c11f2e464b756d05d1349af7bb6f12395d8f5a8e41
|
4
|
+
data.tar.gz: 2aef7069cf3eca6892ce5ac4dffbd74c85537697a2fc80349ef3235585ca243e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c07f3427cc684736ca4d2b7af698482b9969e64a1f071db136debafb5ab4096dce13c34112033c412134af4d4e544dd9153ecfc04697df1d254b5f01cd8e34bb
|
7
|
+
data.tar.gz: 89149c2fc265c410645c6e02bfc4dbff60362074132ef4bd42f0ee72724055aa5f783357b738b7e625174392ec01ebfde2695debfd8fc0b3973d48a777f31550
|
@@ -72,13 +72,18 @@ class Train::Transports::SSH
|
|
72
72
|
|
73
73
|
args = %w{ -o UserKnownHostsFile=/dev/null }
|
74
74
|
args += %w{ -o StrictHostKeyChecking=no }
|
75
|
-
args += %w{ -o
|
76
|
-
args += %w{ -o BatchMode=yes } if options[:non_interactive]
|
75
|
+
args += %w{ -o BatchMode=yes } if options[:non_interactive]
|
77
76
|
args += %W{ -o LogLevel=#{level} }
|
78
77
|
args += %W{ -o ForwardAgent=#{fwd_agent} } if options.key?(:forward_agent)
|
79
|
-
|
80
|
-
|
78
|
+
|
79
|
+
keys = Array(options[:keys])
|
80
|
+
unless keys.empty?
|
81
|
+
args += %w{ -o IdentitiesOnly=yes }
|
82
|
+
keys.each do |ssh_key|
|
83
|
+
args += %W{ -i #{ssh_key} }
|
84
|
+
end
|
81
85
|
end
|
86
|
+
|
82
87
|
args
|
83
88
|
end
|
84
89
|
|
data/lib/train/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: train-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef InSpec Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|