aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-server3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Contributions/examples/brew-server b/Library/Contributions/examples/brew-server
index c0d2910b1..15bd4dbb7 100755
--- a/Library/Contributions/examples/brew-server
+++ b/Library/Contributions/examples/brew-server
@@ -64,7 +64,7 @@ get '/' do
<div class="row">
<ul>
HTML
- Formulary.read_all do |name, klass|
+ Formula.names do |name|
s << "<li>#{link_to_formula(name)}</li>"
end
s << <<-HTML
@@ -106,7 +106,6 @@ get '/search' do
end
get '/formula/:name' do
- # klass = Formulary.read params[:name]
klass = Formula.factory(params[:name])
installed = klass.installed? ? "Installed at" : "Not installed."