train-core 3.2.14 → 3.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/train.rb +16 -16
- data/lib/train/platforms/common.rb +13 -10
- data/lib/train/platforms/detect/helpers/os_common.rb +20 -4
- data/lib/train/platforms/detect/helpers/os_linux.rb +7 -0
- data/lib/train/platforms/detect/helpers/os_windows.rb +5 -0
- data/lib/train/platforms/detect/scanner.rb +2 -2
- data/lib/train/platforms/detect/specifications/os.rb +416 -526
- data/lib/train/plugins/base_connection.rb +5 -1
- data/lib/train/version.rb +1 -1
- metadata +42 -14
@@ -107,8 +107,12 @@ class Train::Plugins::Transport
|
|
107
107
|
plat
|
108
108
|
end
|
109
109
|
|
110
|
+
def backend_type
|
111
|
+
@options[:backend] || "unknown"
|
112
|
+
end
|
113
|
+
|
110
114
|
def inspect
|
111
|
-
"%s[%s]" % [self.class,
|
115
|
+
"%s[%s]" % [self.class, backend_type]
|
112
116
|
end
|
113
117
|
|
114
118
|
alias direct_platform force_platform!
|
data/lib/train/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: train-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.20
|
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: 2020-
|
11
|
+
date: 2020-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: addressable
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: inifile
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: json
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -51,48 +79,48 @@ dependencies:
|
|
51
79
|
- !ruby/object:Gem::Version
|
52
80
|
version: '4.0'
|
53
81
|
- !ruby/object:Gem::Dependency
|
54
|
-
name: net-
|
82
|
+
name: net-scp
|
55
83
|
requirement: !ruby/object:Gem::Requirement
|
56
84
|
requirements:
|
57
85
|
- - ">="
|
58
86
|
- !ruby/object:Gem::Version
|
59
|
-
version: '2
|
87
|
+
version: '1.2'
|
60
88
|
- - "<"
|
61
89
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
90
|
+
version: '3.0'
|
63
91
|
type: :runtime
|
64
92
|
prerelease: false
|
65
93
|
version_requirements: !ruby/object:Gem::Requirement
|
66
94
|
requirements:
|
67
95
|
- - ">="
|
68
96
|
- !ruby/object:Gem::Version
|
69
|
-
version: '2
|
97
|
+
version: '1.2'
|
70
98
|
- - "<"
|
71
99
|
- !ruby/object:Gem::Version
|
72
|
-
version: '
|
100
|
+
version: '3.0'
|
73
101
|
- !ruby/object:Gem::Dependency
|
74
|
-
name: net-
|
102
|
+
name: net-ssh
|
75
103
|
requirement: !ruby/object:Gem::Requirement
|
76
104
|
requirements:
|
77
105
|
- - ">="
|
78
106
|
- !ruby/object:Gem::Version
|
79
|
-
version: '
|
107
|
+
version: '2.9'
|
80
108
|
- - "<"
|
81
109
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
110
|
+
version: '6.0'
|
83
111
|
type: :runtime
|
84
112
|
prerelease: false
|
85
113
|
version_requirements: !ruby/object:Gem::Requirement
|
86
114
|
requirements:
|
87
115
|
- - ">="
|
88
116
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
117
|
+
version: '2.9'
|
90
118
|
- - "<"
|
91
119
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
120
|
+
version: '6.0'
|
93
121
|
description: A minimal Train with a backends for ssh and winrm.
|
94
122
|
email:
|
95
|
-
-
|
123
|
+
- inspec@chef.io
|
96
124
|
executables: []
|
97
125
|
extensions: []
|
98
126
|
extra_rdoc_files: []
|