homebrew-core/Formula/psgrep.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

20 lines
566 B
Ruby

class Psgrep < Formula
desc "Shortcut for the 'ps aux | grep' idiom"
homepage "https://github.com/jvz/psgrep"
# might be dead soon: https://github.com/jvz/psgrep/issues/2
url "https://psgrep.googlecode.com/files/psgrep-1.0.6.tar.bz2"
sha256 "6da723575c768e5a2a61f67eb7fdf57ca942b897496ede524d19ea75e2c4ddac"
head "https://github.com/jvz/psgrep.git"
def install
bin.install "psgrep"
man1.install "psgrep.1"
end
test do
output = `#{bin}/psgrep #{Process.pid}`
assert output.include?($0)
assert_equal 0, $?.exitstatus
end
end