From 080a7ee3dc0eafb5221ecda185caff1c63748d0f Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 19 Feb 2010 21:55:17 -0800 Subject: brew --cache [formula] This developer-oriented command lets you ask Homebrew what the cached filename will be for a brew's tarball. --- bin/brew | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/brew b/bin/brew index dfbc4e3dd..f1e445b1b 100755 --- a/bin/brew +++ b/bin/brew @@ -14,7 +14,14 @@ require 'global' case ARGV.first when '--cache' - puts HOMEBREW_CACHE + if ARGV.named.empty? + puts HOMEBREW_CACHE + else + require 'formula' + ARGV.named.each do |name| + puts Formula.factory(name).cached_download rescue '(built from source control)' + end + end exit 0 when '-h', '--help', '--usage', '-?', 'help', nil puts ARGV.usage -- cgit v1.2.3