Merge pull request #2304 from rolandwalker/uri_feedback

add feedback when downloading a URI source
This commit is contained in:
Paul Hinze 2014-01-04 07:50:44 -08:00
commit a369f7ffd4

View file

@ -12,6 +12,7 @@ class Cask::Source::URI
def load
HOMEBREW_CACHE_CASKS.mkpath
path = HOMEBREW_CACHE_CASKS.join(File.basename(uri))
ohai "Downloading #{uri}"
curl(uri, '-o', path.to_s)
Cask::Source::Path.new(path).load
rescue ErrorDuringExecution