app/importers/clients/sftp_client.rb
# This returns an object that will reveal secure data if printed
This returns an object that will reveal secure data if printed
This returns an object that will reveal secure data if printed
def sftp_session
    raise "SFTP information missing" unless sftp_info_present?
    if @sftp_session.nil?
      @sftp_session = Net::SFTP.start(host, user, auth_mechanism)
    end
    @sftp_session
  end
def sftp_session raise "SFTP information missing" unless sftp_info_present? if @sftp_session . nil? @sftp_session = Net :: SFTP . start ( host , user , auth_mechanism ) end @sftp_session end
This returns an object that will reveal secure data if printed
This returns an object that will reveal secure data if printed