aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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 }