Files
2015-08-03 14:21:42 +01:00

21 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