class Kitchen::Transport::Sftp

Constants

CHECKSUMS_HASH
CHECKSUMS_PATH
CHECKSUMS_REMOTE_PATH
MAX_TRANSFERS

Public Instance Methods

create_new_connection(options, &block) click to toggle source

Copy-pasta from Ssh#create_new_connection because I need the SFTP connection class. Tracked in github.com/test-kitchen/test-kitchen/pull/726

# File lib/kitchen/transport/sftp.rb, line 50
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(config, options, &block)
end
finalize_config!(instance) click to toggle source
Calls superclass method
# File lib/kitchen/transport/sftp.rb, line 37
def finalize_config!(instance)
  super.tap do
    if defined?(Kitchen::Verifier::Inspec) && instance.verifier.is_a?(Kitchen::Verifier::Inspec)
      instance.verifier.send(:define_singleton_method, :runner_options_for_sftp) do |config_data|
        runner_options_for_ssh(config_data)
      end
    end
  end
end