train-core 3.12.3 → 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: 9d0044b76da3c24fab038bbe68ae8ab02da0148f639ee8277651c5cb59df12b7
4
- data.tar.gz: dd5435f1982629007a628e15bc715d0a6d2c1da5014624202957719355aa6d79
3
+ metadata.gz: 55001dbd71418389394ed4dda18ebba8e3a7fc58c1c2928c3b993799b28fddb6
4
+ data.tar.gz: 888e208acd9a25600c0748e9c91a9c36aaa20197df5b1eb326f78261286f10cf
5
5
  SHA512:
6
- metadata.gz: 63ccd08f79de2889c5cd6983f3c6f855ea44038bbdd65d657c5607dd0929ce80579036d815b28429bf644bdf2e037781b1d875e7b5b59328705770260f59bece
7
- data.tar.gz: 6c9ef7e3773860a849f547ad5d4c3a654edcc528ee892ab52b86436aa3f56f97153cd2bf531e13017a660c7710e3d4301111825b751dd9e4aa39bcf1e0c7247c
6
+ metadata.gz: 317c9a652bf9bdcb2a95485aca89e8c67ae408bf1f5d09f8197bb90c625217792980b3d8a97b9998e41e965ea532e90bee3ed22624b98bd6c94780f50a8c9f02
7
+ data.tar.gz: d076ae5364f01ff588b618a6e76b2ed24aec887c83202f4ea1bdb320079dbc5c16224a0f60611cda224a9cf4fb17fc2d056363eacaafb287467b3e0c06b3fa2e
@@ -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.3".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.3
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-04-15 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,7 +183,7 @@ 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
  - - ">="