Add required methods to AbstractDownloadStrategy

Fixes Homebrew/homebrew#20080.
This commit is contained in:
Jack Nagel 2013-05-26 09:15:47 -05:00
parent aecdcf768b
commit 68b3e6f3fb

View File

@ -28,6 +28,11 @@ class AbstractDownloadStrategy
def quiet_safe_system *args
safe_system(*expand_safe_system_args(args))
end
# All download strategies are expected to implement these methods
def fetch; end
def stage; end
def cached_location; end
end
class CurlDownloadStrategy < AbstractDownloadStrategy