aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-02-21 00:41:07 -0500
committerJack Nagel2014-02-21 00:41:07 -0500
commitd6fd5da0994ca30a1fe70f9964a24f0240ee7ab0 (patch)
tree09717461a505271e88cb7fac3ddbad296e05b927 /Library/Homebrew
parent65c0cca5bc15ab67ba0a498052be8fd769ecc2e9 (diff)
downloadhomebrew-d6fd5da0994ca30a1fe70f9964a24f0240ee7ab0.tar.bz2
Move methods to a more logical place
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 86444883a..dc95f6293 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -123,6 +123,14 @@ class Formula
active_spec.downloader
end
+ def cached_download
+ downloader.cached_location
+ end
+
+ def clear_cache
+ downloader.clear_cache
+ end
+
# if the dir is there, but it's empty we consider it not installed
def installed?
(dir = installed_prefix).directory? && dir.children.length > 0
@@ -198,14 +206,6 @@ class Formula
Pathname.new("#{HOMEBREW_PREFIX}/opt/#{name}")
end
- def cached_download
- downloader.cached_location
- end
-
- def clear_cache
- downloader.clear_cache
- end
-
# Can be overridden to selectively disable bottles from formulae.
# Defaults to true so overridden version does not have to check if bottles
# are supported.