aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-04 09:56:50 -0700
committerAdam Vandenberg2010-07-04 11:23:32 -0700
commit404483ed52529d538e2befd2e7cd1b70fa9d92dd (patch)
tree6321a1899c59e70c7fe86a905fdf8cd191265022
parentba530cea29a7fdf070c9349c57d58b544480081d (diff)
downloadhomebrew-404483ed52529d538e2befd2e7cd1b70fa9d92dd.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.
-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 }