2016-04-27 15:58:49 +00:00
|
|
|
class Cli53 < Formula
|
|
|
|
desc "command-line tool for Amazon Route 53"
|
|
|
|
homepage "https://github.com/barnybug/cli53"
|
|
|
|
url "https://github.com/barnybug/cli53/archive/0.7.4.tar.gz"
|
|
|
|
sha256 "3cb89e6aa91676ffd0577798a4b06b056667d18ad836de4fa31c0564ee48474e"
|
|
|
|
|
2016-04-28 21:02:48 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "0ba2e364ada8976e9141d22ee99e6710d579ff42520731a3769c5220454cd42e" => :el_capitan
|
|
|
|
sha256 "280939d812078baeb1bd49f6695b7ce5805bf6b26cd452edcaa85b23205c4ffc" => :yosemite
|
|
|
|
sha256 "0c7cf94128d2a4d9a927842ebf61047ab263e2da2e749e8cac4a77a0a36052b6" => :mavericks
|
|
|
|
end
|
|
|
|
|
2016-04-27 15:58:49 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
mkdir_p buildpath/"src/github.com/barnybug"
|
|
|
|
ln_s buildpath, buildpath/"src/github.com/barnybug/cli53"
|
|
|
|
|
|
|
|
system "make", "build"
|
|
|
|
bin.install "cli53"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "list domains", shell_output("#{bin}/cli53 help list")
|
|
|
|
end
|
|
|
|
end
|