Module: Tango::Fetch
- Included in:
- Runner
- Defined in:
- lib/tango/fetch.rb
Instance Method Summary collapse
Instance Method Details
#fetch(url) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/tango/fetch.rb', line 6 def fetch(url) if have_wget? shell("wget", "--progress=bar:force", "--continue", url) else shell("curl", "-O", "-C", "-", "-L", "--progress-bar", url) end end |