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 +4 -4
- data/lib/train/transports/ssh_connection.rb +6 -1
- data/lib/train/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c246b75daf5823ce299b046e9454591f099317106ee6ce11ef048bc827e0d907
|
4
|
+
data.tar.gz: 1c43865e91e8d8fc4953fbf855cd99f701f52890095864391a4174002084b2db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
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.
|
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-
|
11
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|