app/jobs/proquest_job.rb
# Transmit the exported file to ProQuest SFTP server
Transmit the exported file to ProQuest SFTP server
Transmit the exported file to ProQuest SFTP server
def transmit_file
    Net::SFTP.start(ENV['PROQUEST_SFTP_HOST'], ENV['PROQUEST_SFTP_USER'], password: ENV['PROQUEST_SFTP_PASSWORD']) do |sftp|
      Rails.logger.debug "Uploading #{@upload_file} to ProQuest"
      sftp.upload!(@upload_file, "#{@work.upload_file_id}.zip")
    end
  end
def transmit_file Net :: SFTP . start ( ENV [ 'PROQUEST_SFTP_HOST' ] , ENV [ 'PROQUEST_SFTP_USER' ] , password : ENV [ 'PROQUEST_SFTP_PASSWORD' ] ) do | sftp | Rails . logger . debug "Uploading #{@upload_file} to ProQuest" sftp . upload! ( @upload_file , "#{@work.upload_file_id}.zip" ) end end
Transmit the exported file to ProQuest SFTP server
Transmit the exported file to ProQuest SFTP server