2017-07-15 08:17:55 +00:00
|
|
|
class Akamai < Formula
|
|
|
|
desc "CLI toolkit for working with Akamai's APIs"
|
|
|
|
homepage "https://github.com/akamai/cli"
|
2017-09-14 04:26:31 +00:00
|
|
|
url "https://github.com/akamai/cli/archive/0.4.0.tar.gz"
|
|
|
|
sha256 "9364ccedd21dfe520d59a05ea1d0fbd83c1b4da8e2dbb6686c829a3583e626fc"
|
2017-07-15 08:17:55 +00:00
|
|
|
|
2017-07-21 18:22:50 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-09-14 04:36:59 +00:00
|
|
|
sha256 "e997cd826985bb4b41081866e8dfb3e4d10d544013057eb096f4c9b79fe30bd3" => :sierra
|
|
|
|
sha256 "f0c99cf085a3540494a3ff12832b81077ed0bd42e851e5f8892944ddcee2d5f1" => :el_capitan
|
2017-07-21 18:22:50 +00:00
|
|
|
end
|
|
|
|
|
2017-07-15 08:17:55 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
depends_on "glide" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
ENV["GLIDE_HOME"] = HOMEBREW_CACHE/"glide_home/#{name}"
|
|
|
|
|
|
|
|
srcpath = buildpath/"src/github.com/akamai/cli"
|
|
|
|
srcpath.install buildpath.children
|
|
|
|
|
|
|
|
cd srcpath do
|
|
|
|
system "glide", "install"
|
2017-08-10 19:12:08 +00:00
|
|
|
system "go", "build", "-tags", "noautoupgrade nofirstrun", "-o", bin/"akamai"
|
2017-07-15 08:17:55 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2017-09-14 04:26:31 +00:00
|
|
|
assert_match "Purge", shell_output("#{bin}/akamai install --force purge")
|
2017-07-15 08:17:55 +00:00
|
|
|
end
|
|
|
|
end
|