aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2012-06-25 21:39:28 -0500
committerJack Nagel2012-07-04 22:47:34 -0500
commitb2ff74372e26e53c9d045d513c268ee8eccd7b78 (patch)
tree1d271aebd308cc89c579712569d731b60f460e49 /Library/Homebrew/cmd
parent93f8c71e2132771363701c9f3c566599ac78a084 (diff)
downloadbrew-b2ff74372e26e53c9d045d513c268ee8eccd7b78.tar.bz2
Refactor download strategy detection
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/create.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb
index da86262c9..97f7e3907 100644
--- a/Library/Homebrew/cmd/create.rb
+++ b/Library/Homebrew/cmd/create.rb
@@ -88,7 +88,7 @@ class FormulaCreator
end
unless ARGV.include? "--no-fetch" and version
- strategy = detect_download_strategy url
+ strategy = DownloadStrategyDetector.new(url).detect
@sha1 = strategy.new(url, name, version, nil).fetch.sha1 if strategy == CurlDownloadStrategy
end