aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-02-19 21:55:17 -0800
committerAdam Vandenberg2010-02-24 11:15:12 -0800
commit080a7ee3dc0eafb5221ecda185caff1c63748d0f (patch)
treecd5c720d57e490f653a85e5783257da63c05e59d /Library/Homebrew/formula.rb
parent1149b082bb07ef603051ff1be1b18c4a33423c3f (diff)
downloadbrew-080a7ee3dc0eafb5221ecda185caff1c63748d0f.tar.bz2
brew --cache [formula]
This developer-oriented command lets you ask Homebrew what the cached filename will be for a brew's tarball.
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 0af5651e3..34cd5ef24 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -133,6 +133,10 @@ class Formula
self.class.path name
end
+ def cached_download
+ @downloader.tarball_path
+ end
+
attr_reader :url, :version, :homepage, :name, :specs
def bin; prefix+'bin' end