homebrew-core/Formula/psgrep.rb

19 lines
484 B
Ruby

class Psgrep < Formula
desc "Shortcut for the 'ps aux | grep' idiom"
homepage "https://github.com/jvz/psgrep"
url "https://github.com/jvz/psgrep/archive/1.0.9.tar.gz"
sha256 "6408e4fc99414367ad08bfbeda6aa86400985efe1ccb1a1f00f294f86dd8b984"
head "https://github.com/jvz/psgrep.git"
bottle :unneeded
def install
bin.install "psgrep"
man1.install "psgrep.1"
end
test do
assert_match $PROGRAM_NAME, shell_output("#{bin}/psgrep #{Process.pid}")
end
end