train 3.8.9 → 3.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/train/transports/docker.rb +11 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd940edfe620167dde1a1775025870c54302942253e052a147af2667f8454719
|
4
|
+
data.tar.gz: f9aa498ec4e35c22298d6cb2fa9dedbdac0a3a5ec30474e7f628ce29681317e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce6627058fcf2703b93ca814b5c96808472fa50d9efa1674e25a316db629074155a0716ed63cfe95c3bbde2db3a2a37e43d444375f3aef26cb59f44a0fb8c055
|
7
|
+
data.tar.gz: d4ce657c8e652714633ad35bf6e05c349c373bbf4d847c33541c2566b7eaae5278093b28c78ba930a5401a14843ad2690165ad9189b26b97f54a3a3ac858f898
|
@@ -83,6 +83,17 @@ class Train::Transports::Docker
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
+
def unique_identifier
|
87
|
+
uuid = @container.nil? ? @id : @container.id # default uuid set to the docker host.
|
88
|
+
unless sniff_for_windows?
|
89
|
+
cmd = run_command_via_connection("head -1 /proc/self/cgroup|cut -d/ -f3") if file("/proc/self/cgroup").exist?
|
90
|
+
unless cmd.stdout.empty?
|
91
|
+
uuid = cmd.stdout.strip
|
92
|
+
end
|
93
|
+
end
|
94
|
+
uuid
|
95
|
+
end
|
96
|
+
|
86
97
|
private
|
87
98
|
|
88
99
|
def file_via_connection(path)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: train
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.9.2
|
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: 2022-
|
11
|
+
date: 2022-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: train-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.9.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.9.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: train-winrm
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|