diff options
Diffstat (limited to 'Library/Formula/git-hooks.rb')
| -rw-r--r-- | Library/Formula/git-hooks.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/git-hooks.rb b/Library/Formula/git-hooks.rb new file mode 100644 index 000000000..179bbc986 --- /dev/null +++ b/Library/Formula/git-hooks.rb @@ -0,0 +1,15 @@ +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 |
