train 0.19.0 → 0.19.1

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: c99003b292f41d03c790974f1aabd9b0ad7792cf
4
- data.tar.gz: 7b2ffa667c8eba8fe0440a8a63483f88f19a4aa5
3
+ metadata.gz: a52a5c7ef67219ce7efa1358a142c6a26d400d61
4
+ data.tar.gz: 0e4a108030e0164506191a128463d691cdbfa177
5
5
  SHA512:
6
- metadata.gz: df622e11873f9e6583ced3fed9c953a513aa3dd0acdf4bc2c2ec5f60f81f64220691e08a45e729937257e62ab19f38aed9e548614a004cbe471655393e671b06
7
- data.tar.gz: 709616bea4c244942aa2d0d8929a27a140090b93b55b37e4edcd9cb68033b925d981810328ed69b904cfb323b89ebfecacd75a8bcdf2baf14e205357f05e45a7
6
+ metadata.gz: 58bc527291b454cdd415a2c39fdc3166e010b2b5106f4917b5b845933612d6b9ea01914dafb932eea0760157c925d2f58abb1cd6be626f513c165a37db12acdd
7
+ data.tar.gz: d67667d29a6cb0bebe830c0c6c4d8706c4c15054ecc7eae6c1f774d0d8c58b9ed51bce96dd4e807444210419e98ff15a6b47ad2d04d4b35240908d87b9948ba0
data/CHANGELOG.md CHANGED
@@ -1,7 +1,15 @@
1
1
  # Change Log
2
2
 
3
- ## [0.19.0](https://github.com/chef/train/tree/0.19.0) (2016-09-05)
4
- [Full Changelog](https://github.com/chef/train/compare/v0.18.0...0.19.0)
3
+ ## [0.19.1](https://github.com/chef/train/tree/0.19.1) (2016-09-16)
4
+ [Full Changelog](https://github.com/chef/train/compare/v0.19.0...0.19.1)
5
+
6
+ **Implemented enhancements:**
7
+
8
+ - hostname property for WinRM::Connection [\#128](https://github.com/chef/train/issues/128)
9
+ - Return hostname from WinRM::Connection same as SSH::Connection [\#150](https://github.com/chef/train/pull/150) ([alexpop](https://github.com/alexpop))
10
+
11
+ ## [v0.19.0](https://github.com/chef/train/tree/v0.19.0) (2016-09-05)
12
+ [Full Changelog](https://github.com/chef/train/compare/v0.18.0...v0.19.0)
5
13
 
6
14
  **Fixed bugs:**
7
15
 
@@ -30,6 +30,7 @@ class Train::Transports::SSH
30
30
  #
31
31
  # @author Fletcher Nichol <fnichol@nichol.ca>
32
32
  class Connection < BaseConnection # rubocop:disable Metrics/ClassLength
33
+ attr_reader :hostname
33
34
  def initialize(options)
34
35
  super(options)
35
36
  @username = @options.delete(:username)
@@ -103,6 +103,7 @@ module Train::Transports
103
103
  transport: :negotiate,
104
104
  disable_sspi: false,
105
105
  basic_auth_only: false,
106
+ hostname: opts[:host],
106
107
  endpoint: opts[:endpoint],
107
108
  user: opts[:user],
108
109
  password: opts[:password],
@@ -28,8 +28,10 @@ class Train::Transports::WinRM
28
28
  #
29
29
  # @author Fletcher Nichol <fnichol@nichol.ca>
30
30
  class Connection < BaseConnection
31
+ attr_reader :hostname
31
32
  def initialize(options)
32
33
  super(options)
34
+ @hostname = @options.delete(:hostname)
33
35
  @rdp_port = @options.delete(:rdp_port)
34
36
  @connection_retries = @options.delete(:connection_retries)
35
37
  @connection_retry_sleep = @options.delete(:connection_retry_sleep)
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.19.0'.freeze
6
+ VERSION = '0.19.1'.freeze
7
7
  end
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.19.0
4
+ version: 0.19.1
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-09-05 00:00:00.000000000 Z
11
+ date: 2016-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json