aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/formula.rb
diff options
context:
space:
mode:
authorTimothee Cour2017-02-08 00:12:50 -0800
committerTimothee Cour2017-02-11 16:38:06 -0800
commitac091437e5b2ae8ca21058cf47184f1788c8d697 (patch)
tree361f0afd2041ea7f4a026af68713715cc77c3e63 /Library/Homebrew/dev-cmd/formula.rb
parentae829ed229395159adf6f1f17fb26518ec27fca6 (diff)
downloadbrew-ac091437e5b2ae8ca21058cf47184f1788c8d697.tar.bz2
renamed where to formula
Diffstat (limited to 'Library/Homebrew/dev-cmd/formula.rb')
-rw-r--r--Library/Homebrew/dev-cmd/formula.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/formula.rb b/Library/Homebrew/dev-cmd/formula.rb
new file mode 100644
index 000000000..80008a354
--- /dev/null
+++ b/Library/Homebrew/dev-cmd/formula.rb
@@ -0,0 +1,15 @@
+#: * `formula` <formulae>:
+#: echo location of the specified <formulae> to stdout
+
+require "formula"
+
+module Homebrew
+ module_function
+
+ def formula
+ raise FormulaUnspecifiedError if ARGV.named.empty?
+ ARGV.resolved_formulae.each do |f|
+ puts "#{f.path}\n"
+ end
+ end
+end