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"
|
2016-11-23 02:50:40 +00:00
|
|
|
url "https://github.com/barnybug/cli53/archive/0.8.7.tar.gz"
|
|
|
|
sha256 "c05918a1c1e5e660bda4b6ca080234a5ccc7c02d8c5b5f9f761faa57f53fb95c"
|
2016-04-27 15:58:49 +00:00
|
|
|
|
2016-04-28 21:02:48 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-11-23 04:29:52 +00:00
|
|
|
sha256 "df1268d4c4416fa2f9837cbdfd2b06c49d679d95d027671426a4becc664fd643" => :sierra
|
|
|
|
sha256 "1ae8290fb59ba09f22a384487302e895c5f42cab117e32cc4fc9acc4d8e85636" => :el_capitan
|
|
|
|
sha256 "84ceef6568a1eabcbbcb08f5eb060c3dae4805f81fb9da6c088c31b61f42d7b4" => :yosemite
|
2016-04-28 21:02:48 +00:00
|
|
|
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
|