class WWWJDic::Utils::Downloader::Downloader

rubocop:disable Style/AsciiComments

Copyright

© 2012 Jon Maken

rubocop:enable Style/AsciiComments see gist.github.com/jonforums/2202048

An HTTP/HTTPS/FTP file downloader library/CLI based upon MiniPortile's HTTP implementation.

Author

Jon Maken

License

3-clause BSD

Revision

2012-03-25 23:01:19 -0600

Constants

VERSION

Attributes

ftp_data_chunk_size[RW]
logger[RW]
max_ca_verify_depth[RW]

Public Class Methods

download_file(url, full_path, count = 3) click to toggle source
   # File lib/wwwjdic/utils/downloader.rb
67 def self.download_file(url, full_path, count = 3)
68   raise I18n.t('error.nil') if url.nil?
69
70   http_download(url, full_path, count)
71 end