Method: Jetel::Modules::Module#download_source
- Defined in:
- lib/jetel/modules/module.rb
#download_source(source, opts) ⇒ Object
71 72 73 74 75 76 77 |
# File 'lib/jetel/modules/module.rb', line 71 def download_source(source, opts) downloaded_file = downloaded_file(source, opts) unless File.exists?(downloaded_file) downloader.download(source[:url], {:dir => download_dir(source, opts), :filename => source[:filename_downloaded]}) end end |