class Kitchen::Transport::Sshtar

Constants

VERSION

Public Instance Methods

create_new_connection(options, &block) click to toggle source
# File lib/kitchen/transport/sshtar.rb, line 25
def create_new_connection(options, &block)
  if @connection
    logger.debug("[SSH] shutting previous connection #{@connection}")
    @connection.close
  end

  @connection_options = options
  @connection = self.class::Connection.new(options, &block)
end