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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e2adbc98a3d3527bf063c5656ac331bab4d1581
4
- data.tar.gz: 64ea8e451841885f39ed1f70b439c69bed0bbb44
3
+ metadata.gz: ea754f958e2bab35ca522e56f923380b7a9f5935
4
+ data.tar.gz: 6491c524a67fd53b3002c248c5fe147a7dc2ff2c
5
5
  SHA512:
6
- metadata.gz: fe7951e7b3f37b58d5e1ee934635ca7ffe8bf8db228bd4a7c37d131c3a05be864204dcfd4d89eda8f60a4a982b1c90f953d750fdb28e8e2f20c33824b9b4e599
7
- data.tar.gz: b7e24e575dbc3be5b086d9d3abdadcb5d904eec82e78db34b00386849c62dca414db6d3971051138d590f174b408b96ef99328929bfc3ca588453227581ea1a0
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.16.0](https://github.com/chef/train/tree/0.16.0) (2016-08-08)
4
- [Full Changelog](https://github.com/chef/train/compare/v0.15.1...0.16.0)
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 owner group uid gid mtime size selinux_label
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
@@ -3,5 +3,5 @@
3
3
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
4
4
 
5
5
  module Train
6
- VERSION = '0.16.0'.freeze
6
+ VERSION = '0.17.0'.freeze
7
7
  end
@@ -0,0 +1,6 @@
1
+ images:
2
+ - centos:5.11
3
+ - centos:6.8
4
+ - centos:7.2.1511
5
+ provision:
6
+ - script: bootstrap.sh
@@ -0,0 +1,6 @@
1
+ images:
2
+ - debian:6.0.10
3
+ - debian:7.11
4
+ - debian:8.5
5
+ provision:
6
+ - script: bootstrap.sh
@@ -0,0 +1,8 @@
1
+ images:
2
+ - fedora:20
3
+ - fedora:21
4
+ - fedora:22
5
+ - fedora:23
6
+ - fedora:24
7
+ provision:
8
+ - script: bootstrap.sh
@@ -0,0 +1,6 @@
1
+ images:
2
+ - oraclelinux:5.11
3
+ - oraclelinux:6.8
4
+ - oraclelinux:7.2
5
+ provision:
6
+ - script: bootstrap.sh
@@ -0,0 +1,8 @@
1
+ images:
2
+ - ubuntu:10.04
3
+ - ubuntu:12.04
4
+ - ubuntu:14.04
5
+ - ubuntu:16.04
6
+ - ubuntu:16.10
7
+ provision:
8
+ - script: bootstrap.sh
@@ -7,7 +7,7 @@ require 'minitest/spec'
7
7
  require 'mocha/setup'
8
8
  require 'train'
9
9
 
10
- describe 'windows local command' do
10
+ describe 'windows winrm command' do
11
11
  let(:conn) {
12
12
  # get final config
13
13
  target_config = Train.target_config({
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.16.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-08 00:00:00.000000000 Z
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-1.yaml
193
- - test/integration/test-travis-2.yaml
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.6
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-1.yaml
267
- - test/integration/test-travis-2.yaml
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
@@ -1,13 +0,0 @@
1
- images:
2
- - centos:6.6
3
- - centos:6.7
4
- - centos:7.1.1503
5
- - debian:7.9
6
- - debian:8.2
7
- - fedora:21
8
- - fedora:22
9
- - ubuntu:12.04
10
- - ubuntu:14.04
11
- - ubuntu:15.04
12
- provision:
13
- - script: bootstrap.sh
@@ -1,13 +0,0 @@
1
- images:
2
- - centos:5.11
3
- - centos:7.0.1406
4
- - debian:6.0.10
5
- - fedora:20
6
- - oraclelinux:5.11
7
- - oraclelinux:6.7
8
- - oraclelinux:7.1
9
- - ubuntu:10.04
10
- - ubuntu:13.04
11
- - ubuntu:15.10
12
- provision:
13
- - script: bootstrap.sh