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
commit078cfc51586bc834418a86c423ec419935c4d302 (patch)
treea22ec7e2dfc63543799f3f725dac43cd1cc90810 /Library/Homebrew/cmd
parent8ed666ae7d0e272a9415b94d397aa0574965f9ef (diff)
downloadhomebrew-078cfc51586bc834418a86c423ec419935c4d302.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