homebrew-core/Formula/git-hooks.rb
Chris Blackburn 17a0788474 git-hooks 1.00.0 (new formula)
Closes Homebrew/homebrew#36236.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-07 08:56:34 +01:00

15 lines
449 B
Ruby

class GitHooks < Formula
homepage "https://github.com/icefox/git-hooks"
url "https://github.com/icefox/git-hooks/archive/1.00.0.tar.gz"
sha256 "8197ca1de975ff1f795a2b9cfcac1a6f7ee24276750c757eecf3bcb49b74808e"
def install
bin.install "git-hooks"
(etc/"git-hooks").install "contrib"
end
test do
output = `cd $(brew --repository); git hooks`.strip
assert_match /Listing User, Project, and Global hooks/, output
end
end