From d0dd261dcdd46a7d3bf001759971e462d76ef996 Mon Sep 17 00:00:00 2001 From: Chris Blackburn Date: Mon, 26 Jan 2015 12:17:53 -0600 Subject: git-hooks 1.00.0 (new formula) Closes #36236. Signed-off-by: Mike McQuaid --- Library/Formula/git-hooks.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Library/Formula/git-hooks.rb (limited to 'Library') 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 -- cgit v1.2.3