train-core 1.4.22 → 1.4.24
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/CHANGELOG.md +13 -7
- data/lib/train/file/local.rb +5 -0
- data/lib/train/file/remote/aix.rb +6 -0
- data/lib/train/file/remote/unix.rb +5 -0
- data/lib/train/file/remote/windows.rb +4 -0
- data/lib/train/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f108967aaaf0d2138976f18a055e4cdde00e7499e94cb99811b1ab773d32402
|
|
4
|
+
data.tar.gz: cdd339626a50c489cfcce7d8c3e4e57b86449600e2e8f490a186715ea01e6881
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 142d1d83f1a61b56c16e074255ceca3a13804adea9a3694c9ab2f8b946b443e0d02bb50f4842f639318934733a6d611af59b8efbb179bb014b56861ebbe46306
|
|
7
|
+
data.tar.gz: 5be2260f8fdb937f25f3d5c6375f9b36461963bee3b342f75cfeddb76ff9891fc6b1d4034090184c64e72758d729b27053488f3d22b1ce1249db2367f233f80a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
1
|
-
<!-- latest_release 1.4.
|
|
2
|
-
## [v1.4.
|
|
1
|
+
<!-- latest_release 1.4.24 -->
|
|
2
|
+
## [v1.4.24](https://github.com/inspec/train/tree/v1.4.24) (2018-07-26)
|
|
3
3
|
|
|
4
4
|
#### Merged Pull Requests
|
|
5
|
-
-
|
|
5
|
+
- Retry SSH command on IOError (Cisco IOS specific) [#326](https://github.com/inspec/train/pull/326) ([jerryaldrichiii](https://github.com/jerryaldrichiii))
|
|
6
6
|
<!-- latest_release -->
|
|
7
7
|
|
|
8
|
-
<!-- release_rollup since=1.4.
|
|
9
|
-
### Changes since 1.4.
|
|
8
|
+
<!-- release_rollup since=1.4.22 -->
|
|
9
|
+
### Changes since 1.4.22 release
|
|
10
10
|
|
|
11
11
|
#### Merged Pull Requests
|
|
12
|
-
-
|
|
12
|
+
- Retry SSH command on IOError (Cisco IOS specific) [#326](https://github.com/inspec/train/pull/326) ([jerryaldrichiii](https://github.com/jerryaldrichiii)) <!-- 1.4.24 -->
|
|
13
|
+
- Add shallow_link_path to inspect symlink direct link [#309](https://github.com/inspec/train/pull/309) ([ColinHebert](https://github.com/ColinHebert)) <!-- 1.4.23 -->
|
|
13
14
|
<!-- release_rollup -->
|
|
14
15
|
|
|
15
16
|
<!-- latest_stable_release -->
|
|
17
|
+
## [v1.4.22](https://github.com/inspec/train/tree/v1.4.22) (2018-07-16)
|
|
18
|
+
|
|
19
|
+
#### Merged Pull Requests
|
|
20
|
+
- Add VMware transport [#321](https://github.com/inspec/train/pull/321) ([jerryaldrichiii](https://github.com/jerryaldrichiii))
|
|
21
|
+
<!-- latest_stable_release -->
|
|
22
|
+
|
|
16
23
|
## [v1.4.21](https://github.com/inspec/train/tree/v1.4.21) (2018-07-05)
|
|
17
24
|
|
|
18
25
|
#### Merged Pull Requests
|
|
19
26
|
- Remove the delivery cookbook [#317](https://github.com/inspec/train/pull/317) ([tas50](https://github.com/tas50))
|
|
20
27
|
- Modify `WindowsPipeRunner` stderr to use String [#320](https://github.com/inspec/train/pull/320) ([jerryaldrichiii](https://github.com/jerryaldrichiii))
|
|
21
|
-
<!-- latest_stable_release -->
|
|
22
28
|
|
|
23
29
|
## [v1.4.19](https://github.com/inspec/train/tree/v1.4.19) (2018-06-29)
|
|
24
30
|
|
data/lib/train/file/local.rb
CHANGED
|
@@ -12,6 +12,12 @@ module Train
|
|
|
12
12
|
@backend.run_command("perl -e 'print readlink shift' #{@spath}").stdout.chomp
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
def shallow_link_path
|
|
16
|
+
return nil unless symlink?
|
|
17
|
+
@shallow_link_path ||=
|
|
18
|
+
@backend.run_command("perl -e 'print readlink shift' #{@spath}").stdout.chomp
|
|
19
|
+
end
|
|
20
|
+
|
|
15
21
|
def mounted
|
|
16
22
|
@mounted ||= @backend.run_command("lsfs -c #{@spath}")
|
|
17
23
|
end
|
|
@@ -60,6 +60,11 @@ module Train
|
|
|
60
60
|
symlink? ? path : nil
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
+
def shallow_link_path
|
|
64
|
+
return nil unless symlink?
|
|
65
|
+
@shallow_link_path ||= ::File.readlink(@path)
|
|
66
|
+
end
|
|
67
|
+
|
|
63
68
|
def unix_mode_mask(owner, type)
|
|
64
69
|
o = UNIX_MODE_OWNERS[owner.to_sym]
|
|
65
70
|
return nil if o.nil?
|
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: 1.4.
|
|
4
|
+
version: 1.4.24
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dominik Richter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-07-
|
|
11
|
+
date: 2018-07-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mixlib-shellout
|