From 68b3e6f3fb4947076b94a7c0ab09281a8f19fda4 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 26 May 2013 09:15:47 -0500 Subject: [PATCH] Add required methods to AbstractDownloadStrategy Fixes Homebrew/homebrew#20080. --- Library/Homebrew/download_strategy.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 589de6e89b..6745219fb6 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -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