aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-04 09:56:50 -0700
committerAdam Vandenberg2010-07-04 11:23:32 -0700
commitb06e9ce841a1788f5f9247821cefa4445424a514 (patch)
treee65648c1889ccf69d3f427f5dfd94d282a2b911b /Library
parent7d852f10a78a59ea9ec7985ab81d58fd96c8f353 (diff)
downloadbrew-b06e9ce841a1788f5f9247821cefa4445424a514.tar.bz2
external command 'brew readall' that tries to import all brews
This can be useful for debugging when making changes to formula.rb, since that can cause problems across all formuale.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-readall.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-readall.rb b/Library/Contributions/examples/brew-readall.rb
new file mode 100755
index 000000000..1a0c7ebe2
--- /dev/null
+++ b/Library/Contributions/examples/brew-readall.rb
@@ -0,0 +1,7 @@
+# `brew readall` tries to import all formulae one-by-one.
+# This can be useful for debugging issues across all formulae
+# when making significant changes to formula.rb
+
+require 'formula'
+names = []
+Formulary.read_all { |name, klass| names << name }