train-core 3.12.3 → 3.12.6

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: c246b75daf5823ce299b046e9454591f099317106ee6ce11ef048bc827e0d907
4
+ data.tar.gz: 1c43865e91e8d8fc4953fbf855cd99f701f52890095864391a4174002084b2db
5
5
  SHA512:
6
- metadata.gz: 63ccd08f79de2889c5cd6983f3c6f855ea44038bbdd65d657c5607dd0929ce80579036d815b28429bf644bdf2e037781b1d875e7b5b59328705770260f59bece
7
- data.tar.gz: 6c9ef7e3773860a849f547ad5d4c3a654edcc528ee892ab52b86436aa3f56f97153cd2bf531e13017a660c7710e3d4301111825b751dd9e4aa39bcf1e0c7247c
6
+ metadata.gz: 63ccc18bd99bfd6a1a80185fa4f0f4f3c4bef054c3ec3f142d5fcb3295d638013f53e2834ba23ea4df6c8ad525d3666f9b1cb123226fae9482713b804d4877c6
7
+ data.tar.gz: fa5660f10e3e9dfacebf234cd8824c2dc4857669289aec105356e61cecc561b2d0fa6b953cba493d27291f8c1ee6be9e7785389166b4eb0fd9690af8a147b041
@@ -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.6".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.6
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-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable