train-core 3.3.27 → 3.4.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73c36e29da576607716f40e56d269c20dc0f340eb6db173401920d31780b0795
4
- data.tar.gz: 7dc1d05255dfe2ee94ce9c485a17542128c23981f806a2f232ec7c4e748055d0
3
+ metadata.gz: bcdd1ac651c1272f119e63d0edb3d9267b4811088a0e3133b90d1fa969c79258
4
+ data.tar.gz: '09c95e4d2627b99f5c878336f84f416fd61ee46225362973b81ad0d4b70559a2'
5
5
  SHA512:
6
- metadata.gz: 0c93f29190920583a17b6a03f07fdd082802ce6e4a3f1d991a2e20a31a186527c487e168cb99aab77a973f648603456eb4932d02a21bdf08ab915bfc2e0f5af6
7
- data.tar.gz: 3037542a3872731085cd7b859d79a400038ba1f5091c0433ee40fd3d3c4298b5db9d9682b4c5b60bf3c9ed94bcadeeff0a5d9e441e7dba13f7856a622cee9a33
6
+ metadata.gz: f0bec9907895f76f5e211fafdc1e1adc5ea7603a5db7c6e3ac4e098102976aa13c0ca2e2c2fa4eb8d67666820e516336a063a32687a4ba22683cdec8fc7a4584
7
+ data.tar.gz: 3c2444b2309bccff9f61f52a0c235b090e7d3040a01ec084da895a287a600708278b934e84a9f268c30fa2e306035cd3eeb6621fd201cd7492f5af5560b04a13
@@ -113,6 +113,9 @@ module Train
113
113
  # TODO: rewrite next line using compact! once we drop support for ruby 2.3
114
114
  creds = creds.delete_if { |_, value| value.nil? }
115
115
 
116
+ # merge train options in from the URI query string
117
+ creds.merge!(uri.query_values.map { |k, v| [k.to_sym, v] }.to_h) unless uri.query_values.nil?
118
+
116
119
  # return the updated config
117
120
  creds
118
121
  end
@@ -63,6 +63,7 @@ module Train::Transports
63
63
  option :bastion_port, default: 22
64
64
  option :non_interactive, default: false
65
65
  option :verify_host_key, default: false
66
+ option :forward_agent, default: false
66
67
 
67
68
  # Allow connecting with older algorithms
68
69
  option :append_all_supported_algorithms, default: true
@@ -341,7 +341,7 @@ class Train::Transports::SSH
341
341
  if timeout
342
342
  res = thr.join(timeout)
343
343
  unless res
344
- logger.info("ssh command reached requested timeout (#{timeout}s)")
344
+ logger.debug("train ssh command '#{cmd}' reached requested timeout (#{timeout}s)")
345
345
  session.channels.each_value { |c| c.eof!; c.close }
346
346
  raise Train::CommandTimeoutReached.new "ssh command reached timeout (#{timeout}s)"
347
347
  end
@@ -2,5 +2,5 @@
2
2
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
3
3
 
4
4
  module Train
5
- VERSION = "3.3.27".freeze
5
+ VERSION = "3.4.1".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.3.27
4
+ version: 3.4.1
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-10-19 00:00:00.000000000 Z
11
+ date: 2020-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable