train 3.8.6 → 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: 2c80c632c1295dc89f33c7d2ffb66a5e53b68cf9fa61047d6b68907bffd1b95c
4
- data.tar.gz: 6cc9ac2913f162ff927620e427be4c716bf3028602e833c924a50d54a5b45c69
3
+ metadata.gz: fd940edfe620167dde1a1775025870c54302942253e052a147af2667f8454719
4
+ data.tar.gz: f9aa498ec4e35c22298d6cb2fa9dedbdac0a3a5ec30474e7f628ce29681317e7
5
5
  SHA512:
6
- metadata.gz: d35d265fc109afc36bbd28c2af8e2e2b3f2503aca1c5fc639f8ed136459e4f5c9306dfdb73323f501fdc37612dedbb05e4ef3b93ae6cd0eba2513771138d581a
7
- data.tar.gz: 56c633d2dba805379b45a561f71c52d3a652a8a72ed44074568771e39a71bad6ff179b58c447bec1fab934e5213a8b63d45f2f836ddfa4163d3d43a7fbe5f4ff
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)
@@ -34,7 +34,7 @@ module Train::Transports
34
34
  @powershell_binary = detect_powershell_binary
35
35
 
36
36
  if @powershell_binary == :powershell
37
- require_relative "local"
37
+ require "train/transports/local"
38
38
  @powershell = Train::Transports::Local::Connection.new(options)
39
39
  end
40
40
 
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.6
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: 2021-12-17 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.6
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.6
26
+ version: 3.9.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: train-winrm
29
29
  requirement: !ruby/object:Gem::Requirement