train 3.8.9 → 3.9.2

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: ba990081a6ccfd78a6762b5685f7a22abfb252823f2fd185b942840450943243
4
- data.tar.gz: 965ea4c81f9bb0fd0268f9d60cff8de1c1cd65ec89254a0bbbe8e6938cf85893
3
+ metadata.gz: fd940edfe620167dde1a1775025870c54302942253e052a147af2667f8454719
4
+ data.tar.gz: f9aa498ec4e35c22298d6cb2fa9dedbdac0a3a5ec30474e7f628ce29681317e7
5
5
  SHA512:
6
- metadata.gz: bebfde45aff5cafec1a39fa25aa63b429ad092911276beeed1f3ef0a3bceb3d50baa563ff52cfde417a1556b19d23f40eb97348c6c01d31aba83747fc2819284
7
- data.tar.gz: 8514f25925c060845e2e62dd73733b7d8fe03aea00e67c551067e99f4fd1388d50926bedc2fb8f2125541ecc93599562dafe276bbd4f1c32def1a73655c03f12
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.8.9
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-03-09 00:00:00.000000000 Z
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.8.9
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.8.9
26
+ version: 3.9.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: train-winrm
29
29
  requirement: !ruby/object:Gem::Requirement