aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-hooks.rb
diff options
context:
space:
mode:
authorChris Blackburn2015-01-26 12:17:53 -0600
committerMike McQuaid2015-04-07 08:56:34 +0100
commitd0dd261dcdd46a7d3bf001759971e462d76ef996 (patch)
tree985f95c633bc0df42719dea6acce3f50a90d3fc9 /Library/Formula/git-hooks.rb
parent1a28f939cce53356ea075ac64ab7caba29f1d9f5 (diff)
downloadhomebrew-d0dd261dcdd46a7d3bf001759971e462d76ef996.tar.bz2
git-hooks 1.00.0 (new formula)
Closes #36236. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/git-hooks.rb')
-rw-r--r--Library/Formula/git-hooks.rb15
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