2015-01-26 18:17:53 +00:00
|
|
|
class GitHooks < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Manage project, user, and global Git hooks"
|
2015-01-26 18:17:53 +00:00
|
|
|
homepage "https://github.com/icefox/git-hooks"
|
|
|
|
url "https://github.com/icefox/git-hooks/archive/1.00.0.tar.gz"
|
|
|
|
sha256 "8197ca1de975ff1f795a2b9cfcac1a6f7ee24276750c757eecf3bcb49b74808e"
|
|
|
|
|
2015-06-14 07:45:09 +00:00
|
|
|
head "https://github.com/icefox/git-hooks.git"
|
|
|
|
|
2015-06-14 08:31:37 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "d4c5fba7f1b80e8e68762356a2f64ac216bf4e9f3151cf2f236c92a9524b97ed" => :yosemite
|
|
|
|
sha256 "ace6acaff04ef09795d26e6034bf411a89c9f348287dd95f756c82068cea123d" => :mavericks
|
|
|
|
sha256 "d6fb1c69f50a6798e288b46f36d331fe86f8c2cc7b6ea2c8e43dfe675ed80132" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-01-26 18:17:53 +00:00
|
|
|
def install
|
|
|
|
bin.install "git-hooks"
|
|
|
|
(etc/"git-hooks").install "contrib"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-06-14 07:45:09 +00:00
|
|
|
HOMEBREW_REPOSITORY.cd do
|
|
|
|
output = shell_output("git hooks").strip
|
|
|
|
assert_match(/Listing User, Project, and Global hooks/, output)
|
|
|
|
end
|
2015-01-26 18:17:53 +00:00
|
|
|
end
|
|
|
|
end
|