Sha256: f74f3b9c0e282592bdc5904fa65bce3a7de8c67a3b95c42dca489499207f2e1e
Contents?: true
Size: 818 Bytes
Versions: 1
Compression:
Stored size: 818 Bytes
Contents
module EasyDownloader class Downloader < AbstractLoader private def execute_load case @options.type when :ftp ftp_download(@options) when :http http_download(@options) when :sftp sftp_download(@options) end end def error_message(options, e) message = <<-ERROR_MESSAGE There was a problem downloading from #{options.host}. The error we got was: #{e.message} #{e.backtrace.inspect} We tried connecting with: host: #{options.host} user: #{options.user} pass: [filtered] directory_path: #{options.remote_path} file_pattern: #{options.remote_pattern} destination: #{options.local_path} ERROR_MESSAGE message end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easy_downloader-0.0.3.alpha | lib/easy_downloader/downloader.rb |