train 0.16.0 → 0.17.0
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 +18 -2
- data/lib/train/extras/file_windows.rb +8 -1
- data/lib/train/transports/ssh_connection.rb +1 -1
- data/lib/train/version.rb +1 -1
- data/test/integration/test-travis-centos.yml +6 -0
- data/test/integration/test-travis-debian.yml +6 -0
- data/test/integration/test-travis-fedora.yml +8 -0
- data/test/integration/test-travis-oel.yml +6 -0
- data/test/integration/test-travis-ubuntu.yml +8 -0
- data/test/windows/winrm_test.rb +1 -1
- metadata +13 -7
- data/test/integration/test-travis-1.yaml +0 -13
- data/test/integration/test-travis-2.yaml +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea754f958e2bab35ca522e56f923380b7a9f5935
|
4
|
+
data.tar.gz: 6491c524a67fd53b3002c248c5fe147a7dc2ff2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0a535c4afb9e2369f91c25637e713dd2b8e5b20ca45ac77d97ea4e759e20224a45eadc09e013f6c376f5149f455bf12799a650f554f19745c581e9745a553f2
|
7
|
+
data.tar.gz: 629cf69e0aabb71976651f513fd42fd1e42cb844f3d9313d3662faa7b0b7c8fc8b1bef5df3b6e80f2fa7ec7fba3ef8fbea79fde814376a1048885daff8a6d64b
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,23 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [0.
|
4
|
-
[Full Changelog](https://github.com/chef/train/compare/v0.
|
3
|
+
## [0.17.0](https://github.com/chef/train/tree/0.17.0) (2016-08-19)
|
4
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.16.0...0.17.0)
|
5
|
+
|
6
|
+
**Implemented enhancements:**
|
7
|
+
|
8
|
+
- return owner for files on windows [\#132](https://github.com/chef/train/pull/132) ([chris-rock](https://github.com/chris-rock))
|
9
|
+
|
10
|
+
**Closed issues:**
|
11
|
+
|
12
|
+
- prefix powershell commands with `$ProgressPreference = "SilentlyContinue"` [\#134](https://github.com/chef/train/issues/134)
|
13
|
+
|
14
|
+
**Merged pull requests:**
|
15
|
+
|
16
|
+
- CI improvements [\#133](https://github.com/chef/train/pull/133) ([chris-rock](https://github.com/chris-rock))
|
17
|
+
- Rescue EPIPE on connect in ssh transport [\#130](https://github.com/chef/train/pull/130) ([stevendanna](https://github.com/stevendanna))
|
18
|
+
|
19
|
+
## [v0.16.0](https://github.com/chef/train/tree/v0.16.0) (2016-08-08)
|
20
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.15.1...v0.16.0)
|
5
21
|
|
6
22
|
**Merged pull requests:**
|
7
23
|
|
@@ -51,6 +51,13 @@ module Train::Extras
|
|
51
51
|
nil
|
52
52
|
end
|
53
53
|
|
54
|
+
def owner
|
55
|
+
owner = @backend.run_command(
|
56
|
+
"Get-Acl '#{@spath}' | select -expand Owner").stdout.strip
|
57
|
+
return if owner.empty?
|
58
|
+
owner
|
59
|
+
end
|
60
|
+
|
54
61
|
def type
|
55
62
|
if attributes.include?('Archive')
|
56
63
|
return :file
|
@@ -61,7 +68,7 @@ module Train::Extras
|
|
61
68
|
end
|
62
69
|
|
63
70
|
%w{
|
64
|
-
mode
|
71
|
+
mode group uid gid mtime size selinux_label
|
65
72
|
}.each do |field|
|
66
73
|
define_method field.to_sym do
|
67
74
|
nil
|
@@ -166,7 +166,7 @@ class Train::Transports::SSH
|
|
166
166
|
|
167
167
|
RESCUE_EXCEPTIONS_ON_ESTABLISH = [
|
168
168
|
Errno::EACCES, Errno::EADDRINUSE, Errno::ECONNREFUSED, Errno::ETIMEDOUT,
|
169
|
-
Errno::ECONNRESET, Errno::ENETUNREACH, Errno::EHOSTUNREACH,
|
169
|
+
Errno::ECONNRESET, Errno::ENETUNREACH, Errno::EHOSTUNREACH, Errno::EPIPE,
|
170
170
|
Net::SSH::Disconnect, Net::SSH::AuthenticationFailed, Net::SSH::ConnectionTimeout,
|
171
171
|
Timeout::Error
|
172
172
|
].freeze
|
data/lib/train/version.rb
CHANGED
data/test/windows/winrm_test.rb
CHANGED
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: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -189,8 +189,11 @@ files:
|
|
189
189
|
- test/integration/sudo/passwd.rb
|
190
190
|
- test/integration/sudo/reqtty.rb
|
191
191
|
- test/integration/sudo/run_as.rb
|
192
|
-
- test/integration/test-travis-
|
193
|
-
- test/integration/test-travis-
|
192
|
+
- test/integration/test-travis-centos.yml
|
193
|
+
- test/integration/test-travis-debian.yml
|
194
|
+
- test/integration/test-travis-fedora.yml
|
195
|
+
- test/integration/test-travis-oel.yml
|
196
|
+
- test/integration/test-travis-ubuntu.yml
|
194
197
|
- test/integration/test_local.rb
|
195
198
|
- test/integration/test_ssh.rb
|
196
199
|
- test/integration/tests/path_block_device_test.rb
|
@@ -242,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
245
|
version: '0'
|
243
246
|
requirements: []
|
244
247
|
rubyforge_project:
|
245
|
-
rubygems_version: 2.4.
|
248
|
+
rubygems_version: 2.4.8
|
246
249
|
signing_key:
|
247
250
|
specification_version: 4
|
248
251
|
summary: Transport interface to talk to different backends.
|
@@ -263,8 +266,11 @@ test_files:
|
|
263
266
|
- test/integration/sudo/passwd.rb
|
264
267
|
- test/integration/sudo/reqtty.rb
|
265
268
|
- test/integration/sudo/run_as.rb
|
266
|
-
- test/integration/test-travis-
|
267
|
-
- test/integration/test-travis-
|
269
|
+
- test/integration/test-travis-centos.yml
|
270
|
+
- test/integration/test-travis-debian.yml
|
271
|
+
- test/integration/test-travis-fedora.yml
|
272
|
+
- test/integration/test-travis-oel.yml
|
273
|
+
- test/integration/test-travis-ubuntu.yml
|
268
274
|
- test/integration/test_local.rb
|
269
275
|
- test/integration/test_ssh.rb
|
270
276
|
- test/integration/tests/path_block_device_test.rb
|