homebrew-core/Formula/git-town.rb

24 lines
609 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/v2.1.0.tar.gz"
sha256 "01c6db9e44c106cf1b7c4d57cc73e69bd9b508fb5cb9cd90024b9a11ae563aeb"
bottle :unneeded
def install
libexec.install Dir["src/*"]
bin.write_exec_script Dir["#{libexec}/git-*"]
man1.install Dir["man/man1/*"]
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