aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2015-01-04 15:33:25 -0500
committerJack Nagel2015-01-04 15:33:25 -0500
commitbda3b4d91e9dc1cdafb09486e768b45bd444d5dc (patch)
treee36b76cf6a8612a1713be06fd0d8ac2e062d03d7 /Library/Homebrew
parent799d2571e383149210e2d1d8ac333390b1481386 (diff)
downloadbrew-bda3b4d91e9dc1cdafb09486e768b45bd444d5dc.tar.bz2
Decouple LocalBottleDownloadStrategy from CurlDownloadStrategy
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/download_strategy.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 553e99129..f2e87a825 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -376,10 +376,12 @@ class CurlBottleDownloadStrategy < CurlDownloadStrategy
end
# This strategy extracts local binary packages.
-class LocalBottleDownloadStrategy < CurlDownloadStrategy
- def initialize formula
- super formula.name, formula.active_spec
- @tarball_path = formula.local_bottle_path
+class LocalBottleDownloadStrategy < AbstractFileDownloadStrategy
+ attr_reader :cached_location
+
+ def initialize(formula)
+ @name = name
+ @cached_location = formula.local_bottle_path
end
def stage