aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-hooks.rb
blob: 179bbc98626ef3a1cff83d394d10422c7e247b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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