train 0.22.1 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -2
- data/lib/train/transports/ssh_connection.rb +1 -1
- data/lib/train/transports/winrm_connection.rb +4 -2
- data/lib/train/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd9cdd9efab412e16697f043d77d0fd1934a948d
|
4
|
+
data.tar.gz: 05cd1753d73b569548fd689d415835b2db5787ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccf6fd031f7b62af351ff1372721e7f29b4606e0be295a6fb18afbd062d0bdfadc16ff35a9c7cbf1357f0fe28ddcdce54fad7671d8564a9a93f26f20e4c915ca
|
7
|
+
data.tar.gz: 62d9e60558674b4e09e6f92dbcce2acdc0592f8adb41c779a0547e5c45af4cf36510f76154275e417ff4ef89591f73ff21858d610c7872fcd84443be7e374a57
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,19 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [
|
4
|
-
[Full Changelog](https://github.com/chef/train/compare/v0.22.
|
3
|
+
## [v0.23.0](https://github.com/chef/train/tree/v0.23.0) (2017-03-29)
|
4
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.22.1...v0.23.0)
|
5
5
|
|
6
6
|
**Merged pull requests:**
|
7
7
|
|
8
|
+
- Fix Net::SSH warning when passing nil option values [\#172](https://github.com/chef/train/pull/172) ([tylercloke](https://github.com/tylercloke))
|
9
|
+
- winrm: hide password [\#171](https://github.com/chef/train/pull/171) ([crepetl](https://github.com/crepetl))
|
10
|
+
|
11
|
+
## [v0.22.1](https://github.com/chef/train/tree/v0.22.1) (2017-01-17)
|
12
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.22.0...v0.22.1)
|
13
|
+
|
14
|
+
**Merged pull requests:**
|
15
|
+
|
16
|
+
- Release 0.22.1 [\#169](https://github.com/chef/train/pull/169) ([tduffield](https://github.com/tduffield))
|
8
17
|
- Relax net-ssh dep to allow 4.0 [\#168](https://github.com/chef/train/pull/168) ([tduffield](https://github.com/tduffield))
|
9
18
|
- Fix Oracle Linux detection [\#167](https://github.com/chef/train/pull/167) ([carldjohnston](https://github.com/carldjohnston))
|
10
19
|
- Add support for parallels & virtuozzo linux [\#166](https://github.com/chef/train/pull/166) ([jaxxstorm](https://github.com/jaxxstorm))
|
@@ -185,7 +185,7 @@ class Train::Transports::SSH
|
|
185
185
|
# @api private
|
186
186
|
def establish_connection(opts)
|
187
187
|
logger.debug("[SSH] opening connection to #{self}")
|
188
|
-
Net::SSH.start(@hostname, @username, @options)
|
188
|
+
Net::SSH.start(@hostname, @username, @options.clone.delete_if { |_key, value| value.nil? })
|
189
189
|
rescue *RESCUE_EXCEPTIONS_ON_ESTABLISH => e
|
190
190
|
if (opts[:retries] -= 1) <= 0
|
191
191
|
logger.warn("[SSH] connection failed, terminating (#{e.inspect})")
|
@@ -27,7 +27,7 @@ class Train::Transports::WinRM
|
|
27
27
|
# host such as executing commands, transferring files, etc.
|
28
28
|
#
|
29
29
|
# @author Fletcher Nichol <fnichol@nichol.ca>
|
30
|
-
class Connection < BaseConnection
|
30
|
+
class Connection < BaseConnection # rubocop:disable Metrics/ClassLength
|
31
31
|
attr_reader :hostname
|
32
32
|
def initialize(options)
|
33
33
|
super(options)
|
@@ -183,7 +183,9 @@ class Train::Transports::WinRM
|
|
183
183
|
#
|
184
184
|
# @api private
|
185
185
|
def to_s
|
186
|
-
|
186
|
+
options_to_print = @options.clone
|
187
|
+
options_to_print[:password] = '<hidden>' if options_to_print.key?(:password)
|
188
|
+
"#{@username}@#{@hostname}<#{options_to_print.inspect}>"
|
187
189
|
end
|
188
190
|
|
189
191
|
class OS < OSCommon
|
data/lib/train/version.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.23.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: 2017-
|
11
|
+
date: 2017-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
253
|
version: '0'
|
254
254
|
requirements: []
|
255
255
|
rubyforge_project:
|
256
|
-
rubygems_version: 2.
|
256
|
+
rubygems_version: 2.5.2
|
257
257
|
signing_key:
|
258
258
|
specification_version: 4
|
259
259
|
summary: Transport interface to talk to different backends.
|