Class: Kitchen::Transport::Rsync
- Inherits:
-
Ssh
- Object
- Ssh
- Kitchen::Transport::Rsync
- Defined in:
- lib/kitchen/transport/rsync.rb
Defined Under Namespace
Classes: Connection
Instance Method Summary collapse
-
#create_new_connection(options, &block) ⇒ Object
Copy-pasta from Ssh#create_new_connection because I need the Rsync connection class.
Instance Method Details
#create_new_connection(options, &block) ⇒ Object
Copy-pasta from Ssh#create_new_connection because I need the Rsync connection class. Tracked in github.com/test-kitchen/test-kitchen/pull/726
30 31 32 33 34 35 36 37 38 |
# File 'lib/kitchen/transport/rsync.rb', line 30 def create_new_connection(, &block) if @connection logger.debug("[SSH] shutting previous connection #{@connection}") @connection.close end @connection_options = @connection = self.class::Connection.new(, &block) end |