diff options
| author | Adam Vandenberg | 2010-08-15 19:47:46 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-15 19:47:46 -0700 |
| commit | 6d36c4daf28b9d1730d368ccbe184cef99dc92ce (patch) | |
| tree | 6607fc6bc594b63dc653d12d1b62582bbcf23468 /Library | |
| parent | 74a081e08df276154ef6722c25da16b788f978cf (diff) | |
| download | brew-6d36c4daf28b9d1730d368ccbe184cef99dc92ce.tar.bz2 | |
Fix brew server and document.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/examples/brew-server | 2 | ||||
| -rw-r--r-- | Library/Contributions/manpages/brew.1.md | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-server b/Library/Contributions/examples/brew-server index 15bd4dbb7..856baf241 100755 --- a/Library/Contributions/examples/brew-server +++ b/Library/Contributions/examples/brew-server @@ -144,7 +144,7 @@ get '/formula/:name' do end end - used_by = Formula.get_used_by()[klass.name] + used_by = Formula.all.select{|ff| ff.deps.include?(klass.name)}.map{|f| f.name}.flatten.uniq.sort unless used_by == nil s << <<-HTML <dt>Used by</td> diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index 1715752e1..613365dcf 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -175,6 +175,10 @@ Some external commands are shipped with Homebrew, and enabled by default. * `missing`: Checks all installed formuale for missing dependencies. + * `server`: + Starts a local webserver with an app that lets you browse available + formulae, similar to `gem server`. + * `test` <formula>: A few formulae provide a test method. `brew test <formula>` runs this test method. There is no standard output or return code, but it should |
