Method: Remi::Extractor::SftpFile#extract

Defined in:
lib/remi/extractor/sftp_file.rb

#extractObject

Raises:



30
31
32
33
34
# File 'lib/remi/extractor/sftp_file.rb', line 30

def extract
  to_download = @most_recent_only ? Array(most_recent_entry(matching_entries)) : matching_entries
  raise FileNotFoundError, "File not found: #{@remote_file}" if to_download.size == 0
  download(to_download)
end