From 726ea67897fc15213db5158e9b281046b288e736 Mon Sep 17 00:00:00 2001 From: Rogerio Prado de Jesus Date: Mon, 26 Sep 2016 12:23:57 -0300 Subject: [PATCH] hostess 0.2.1 (new formula) Closes #5257. Signed-off-by: Mike McQuaid --- Formula/hostess.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Formula/hostess.rb diff --git a/Formula/hostess.rb b/Formula/hostess.rb new file mode 100644 index 0000000000..4470854b63 --- /dev/null +++ b/Formula/hostess.rb @@ -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