Module: Kitchen::Transport::SpeedyBase
- Included in:
- SpeedySsh
- Defined in:
- lib/kitchen/transport/speedy.rb
Instance Method Summary collapse
-
#create_new_connection(options, &block) ⇒ Object
require :log_prefix copy paste from ssh transport see github.com/test-kitchen/test-kitchen/pull/726.
Instance Method Details
#create_new_connection(options, &block) ⇒ Object
require :log_prefix copy paste from ssh transport see github.com/test-kitchen/test-kitchen/pull/726
13 14 15 16 17 18 19 20 21 |
# File 'lib/kitchen/transport/speedy.rb', line 13 def create_new_connection(, &block) if @connection logger.debug("[#{log_prefix}] shutting previous connection #{@connection}") @connection.close end @connection_options = @connection = self.class::Connection.new(, &block) end |