class Kitchen::Transport::Dokken

def create_new_connection(options, &block)

Other tags:
    Api: - private

Returns:
  • (Ssh::Connection) - an SSH Connection instance

Parameters:
  • options (Hash) -- conneciton options
def create_new_connection(options, &block)
  if @connection
    logger.debug("[Dokken] shutting previous connection #{@connection}")
    @connection.close
  end
  @connection = Kitchen::Transport::Dokken::Connection.new(options, &block)
end