Sha256: 5c97a0251b915c18e86f2faf21224a10befc5ab744f63c6e8b93977e0f3da6a8
Contents?: true
Size: 840 Bytes
Versions: 1
Compression:
Stored size: 840 Bytes
Contents
module EasyDownloader class Uploader < AbstractLoader private def execute_load [:ftp, :http, :sftp].include?(@options.type) ? send("#{@options.type.to_s}_upload".to_sym, @options) : raise(NotImplementedError.new("we don't have an uploader of this type.")) end def error_message(options, e) message = <<-ERROR_MESSAGE There was a problem uploading to #{options.host}. The error we got was: #{e.message} #{e.backtrace.inspect} We tried connecting with: host: #{options.host} user: #{options.user} pass: [filtered] source: #{options.local_path} remote directory path: #{options.remote_path} remote file pattern: #{options.remote_pattern} 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/uploader.rb |