homebrew-core/Formula/git-town.rb
2016-08-06 02:35:32 +01:00

32 lines
853 B
Ruby

class GitTown < Formula
desc "High-level command-line interface for Git"
homepage "http://www.git-town.com"
url "https://github.com/Originate/git-town/archive/v1.0.0.tar.gz"
sha256 "cd095968daf7f9abdd2a2703f5c3b2384137ff088d388d87dbcb2366a881272f"
bottle :unneeded
conflicts_with "git-extras", :because => "git-town also ships a git-sync binary"
def install
libexec.install Dir["src/*"]
bin.write_exec_script Dir["#{libexec}/git-*"]
man1.install Dir["man/man1/*"]
end
def caveats; <<-EOS.undent
To install the Fish shell autocompletions run:
`git town install-fish-autocompletion`
in your terminal.
EOS
end
test do
system "git", "init"
touch "testing.txt"
system "git", "add", "testing.txt"
system "git", "commit", "-m", "Testing!"
system "#{bin}/git-town", "config"
end
end