hostess 0.2.1 (new formula)

Closes #5257.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Rogerio Prado de Jesus 2016-09-26 12:23:57 -03:00 committed by Mike McQuaid
parent 5894035f8d
commit 726ea67897

24
Formula/hostess.rb Normal file
View file

@ -0,0 +1,24 @@
class Hostess < Formula
desc "Idempotent command-line utility for managing your /etc/hosts file"
homepage "https://github.com/cbednarski/hostess"
url "https://github.com/cbednarski/hostess/archive/v0.2.1.tar.gz"
sha256 "3be0198f358d49aa9b17fd8622ab5d4e3732dc45226fe1804f245a0773504aee"
head "https://github.com/cbednarski/hostess.git"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
dir = buildpath/"src/github.com/cbednarski/hostess"
dir.install buildpath.children
cd dir/"cmd/hostess" do
system "go", "install"
end
bin.install "bin/hostess"
end
test do
system bin/"hostess", "--help"
end
end