train-core 1.4.22 → 1.4.24

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: 3d80db1736b414a85cf42d4bc110b5d965aaac720cdf31863b7a2b8a458f10f5
4
- data.tar.gz: b512e8f7429d94b33a8fae759623289578ddc68d00292e995c62b61c91a28a48
3
+ metadata.gz: 2f108967aaaf0d2138976f18a055e4cdde00e7499e94cb99811b1ab773d32402
4
+ data.tar.gz: cdd339626a50c489cfcce7d8c3e4e57b86449600e2e8f490a186715ea01e6881
5
5
  SHA512:
6
- metadata.gz: ccfed37b9467489b33b1b3d4bb82d769cb5d18b448ca53fba8c38a366ecdc35ee074fe43f967bf2a6c529ef78fd0229a5098c82d991de46ff8ab8f44443a6693
7
- data.tar.gz: 8680dbdfa0da2f7490681f2f48924106e3f35680591cb8d28f4db7346aaecc928b0d97f8931807c6864773b8c9adc3b90f9f51454fa14cc403d45fa22ba82036
6
+ metadata.gz: 142d1d83f1a61b56c16e074255ceca3a13804adea9a3694c9ab2f8b946b443e0d02bb50f4842f639318934733a6d611af59b8efbb179bb014b56861ebbe46306
7
+ data.tar.gz: 5be2260f8fdb937f25f3d5c6375f9b36461963bee3b342f75cfeddb76ff9891fc6b1d4034090184c64e72758d729b27053488f3d22b1ce1249db2367f233f80a
data/CHANGELOG.md CHANGED
@@ -1,24 +1,30 @@
1
- <!-- latest_release 1.4.22 -->
2
- ## [v1.4.22](https://github.com/inspec/train/tree/v1.4.22) (2018-07-12)
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
- - Add VMware transport [#321](https://github.com/inspec/train/pull/321) ([jerryaldrichiii](https://github.com/jerryaldrichiii))
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.21 -->
9
- ### Changes since 1.4.21 release
8
+ <!-- release_rollup since=1.4.22 -->
9
+ ### Changes since 1.4.22 release
10
10
 
11
11
  #### Merged Pull Requests
12
- - Add VMware transport [#321](https://github.com/inspec/train/pull/321) ([jerryaldrichiii](https://github.com/jerryaldrichiii)) <!-- 1.4.22 -->
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
 
@@ -27,6 +27,11 @@ module Train
27
27
  end
28
28
  end
29
29
 
30
+ def shallow_link_path
31
+ return nil unless symlink?
32
+ @link_path ||= ::File.readlink(@path)
33
+ end
34
+
30
35
  def block_device?
31
36
  ::File.blockdev?(@path)
32
37
  end
@@ -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?
@@ -77,6 +77,10 @@ module Train
77
77
  nil
78
78
  end
79
79
 
80
+ def shallow_link_path
81
+ nil
82
+ end
83
+
80
84
  def mounted
81
85
  nil
82
86
  end
data/lib/train/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
4
4
 
5
5
  module Train
6
- VERSION = '1.4.22'.freeze
6
+ VERSION = '1.4.24'.freeze
7
7
  end
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.22
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-12 00:00:00.000000000 Z
11
+ date: 2018-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout