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 +4 -4
- data/lib/train/transports/ssh_connection.rb +6 -1
- data/lib/train/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55001dbd71418389394ed4dda18ebba8e3a7fc58c1c2928c3b993799b28fddb6
|
4
|
+
data.tar.gz: 888e208acd9a25600c0748e9c91a9c36aaa20197df5b1eb326f78261286f10cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.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-
|
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: '
|
186
|
+
version: '3.1'
|
187
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
188
|
requirements:
|
189
189
|
- - ">="
|