Class | Downloader |
In: |
lib/facets/more/downloader.rb
|
Parent: | Object |
Tool module for downloading files and extracting archive files. Currently this is console-based but in the future will have SOC for any interface.
destination | [RW] | |
region | [RW] |
currently can only download a single compressed file does not handle downloading an uncompressed directory tree (should it? doubt it)
currently this displays progress to STDOUT; either their should be a way to activate/deactivate or preferably use ducktype singletons (more on that later, see google://_whytheluckystiff if interested) of course I prefer chain messaging but matz said no :(
regional_urls - array of arrays of [ url, region, md5, expected_size ] local_region - region of the user‘s system to_dir - where to store downloaded file (full path) force - download even if file already exists locally