homebrew-core/Formula/git-town.rb

33 lines
853 B
Ruby
Raw Normal View History

2015-09-08 14:52:54 +00:00
class GitTown < Formula
desc "High-level command-line interface for Git"
homepage "http://www.git-town.com"
2016-08-06 01:35:32 +00:00
url "https://github.com/Originate/git-town/archive/v1.0.0.tar.gz"
sha256 "cd095968daf7f9abdd2a2703f5c3b2384137ff088d388d87dbcb2366a881272f"
2015-09-08 14:52:54 +00:00
2015-10-22 13:36:53 +00:00
bottle :unneeded
conflicts_with "git-extras", :because => "git-town also ships a git-sync binary"
2015-09-08 14:52:54 +00:00
def install
libexec.install Dir["src/*"]
bin.write_exec_script Dir["#{libexec}/git-*"]
2015-09-08 14:52:54 +00:00
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
2015-09-08 14:52:54 +00:00
end
test do
system "git", "init"
touch "testing.txt"
system "git", "add", "testing.txt"
system "git", "commit", "-m", "Testing!"
system "#{bin}/git-town", "config"
2015-09-08 14:52:54 +00:00
end
end