train-core 3.12.0 → 3.12.5

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: 26c7b6e3c14be4cba80b81c786da60bc01edb0188fdb0ba655e6ce2cfecddff3
4
- data.tar.gz: 8b9e6e38a2c9c4c54b72febf9fef6264fee270d2901433a979c9cd2bd88dbea4
3
+ metadata.gz: 55001dbd71418389394ed4dda18ebba8e3a7fc58c1c2928c3b993799b28fddb6
4
+ data.tar.gz: 888e208acd9a25600c0748e9c91a9c36aaa20197df5b1eb326f78261286f10cf
5
5
  SHA512:
6
- metadata.gz: 8e97d805c41f975451e007cffcc358160fa96b4b4507896ceb2fc836b088fbb952abf01704d14e55b3a31c8d70e9fa5e33f835498196f0b90ffd5d9372573dd8
7
- data.tar.gz: ae85cc1d117413af6a04ed7e0a37232118073193336ce48883e03b2d69a727a0e20b821336bc4cc371dcc5cffd2c5108acb1369f342246d407cbb282b663de6c
6
+ metadata.gz: 317c9a652bf9bdcb2a95485aca89e8c67ae408bf1f5d09f8197bb90c625217792980b3d8a97b9998e41e965ea532e90bee3ed22624b98bd6c94780f50a8c9f02
7
+ data.tar.gz: d076ae5364f01ff588b618a6e76b2ed24aec887c83202f4ea1bdb320079dbc5c16224a0f60611cda224a9cf4fb17fc2d056363eacaafb287467b3e0c06b3fa2e
@@ -5,6 +5,7 @@
5
5
  require_relative "../plugins"
6
6
  require_relative "../errors"
7
7
  require "mixlib/shellout" unless defined?(Mixlib::ShellOut)
8
+ require "ostruct" unless defined?(OpenStruct)
8
9
 
9
10
  module Train::Transports
10
11
  class Local < Train.plugin(1)
@@ -364,9 +364,14 @@ class Train::Transports::SSH
364
364
  channel.on_request("exit-signal") do |_, data|
365
365
  exit_status = data.read_long
366
366
  end
367
+
368
+ channel.on_close do
369
+ session.channels.each { |_, session_channel| session_channel.close }
370
+ end
367
371
  end
368
372
  end
369
- session.loop
373
+
374
+ session.loop { session.busy? }
370
375
 
371
376
  if timeout && timeoutable?(cmd) && exit_status == GNU_TIMEOUT_EXIT_STATUS
372
377
  logger.debug("train ssh command '#{cmd}' reached requested timeout (#{timeout}s)")
data/lib/train/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
3
3
 
4
4
  module Train
5
- VERSION = "3.12.0".freeze
5
+ VERSION = "3.12.5".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.12.0
4
+ version: 3.12.5
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: 2024-03-28 00:00:00.000000000 Z
11
+ date: 2024-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -183,14 +183,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - ">="
185
185
  - !ruby/object:Gem::Version
186
- version: '2.7'
186
+ version: '3.1'
187
187
  required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  requirements:
189
189
  - - ">="
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.1.4
193
+ rubygems_version: 3.2.3
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Transport interface to talk to a selected set of backends.