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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcdd1ac651c1272f119e63d0edb3d9267b4811088a0e3133b90d1fa969c79258
4
- data.tar.gz: '09c95e4d2627b99f5c878336f84f416fd61ee46225362973b81ad0d4b70559a2'
3
+ metadata.gz: 5814c4a28a344d48cc8853c11f2e464b756d05d1349af7bb6f12395d8f5a8e41
4
+ data.tar.gz: 2aef7069cf3eca6892ce5ac4dffbd74c85537697a2fc80349ef3235585ca243e
5
5
  SHA512:
6
- metadata.gz: f0bec9907895f76f5e211fafdc1e1adc5ea7603a5db7c6e3ac4e098102976aa13c0ca2e2c2fa4eb8d67666820e516336a063a32687a4ba22683cdec8fc7a4584
7
- data.tar.gz: 3c2444b2309bccff9f61f52a0c235b090e7d3040a01ec084da895a287a600708278b934e84a9f268c30fa2e306035cd3eeb6621fd201cd7492f5af5560b04a13
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 IdentitiesOnly=yes } if options[:keys]
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
- Array(options[:keys]).each do |ssh_key|
80
- args += %W{ -i #{ssh_key} }
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
 
@@ -2,5 +2,5 @@
2
2
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
3
3
 
4
4
  module Train
5
- VERSION = "3.4.1".freeze
5
+ VERSION = "3.4.4".freeze
6
6
  end
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.1
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-07 00:00:00.000000000 Z
11
+ date: 2020-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable