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"
|
2018-05-07 08:13:14 +00:00
|
|
|
url "https://github.com/akamai/cli/archive/1.0.2.tar.gz"
|
|
|
|
sha256 "d3855ddbaf11cac3f0f164937faa1153ea9d1ab41175989311eab674d9b4a635"
|
2017-07-15 08:17:55 +00:00
|
|
|
|
2017-07-21 18:22:50 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2018-05-07 08:59:35 +00:00
|
|
|
sha256 "a79032313a80d5d55b35bd6ec057f1b990f613da3dbfc278e631168365776176" => :high_sierra
|
|
|
|
sha256 "31ea9f63acbca72f594346256122d4898b2ce65b1ca53a0785b00bef62700628" => :sierra
|
|
|
|
sha256 "a383a729459136fab43a0ce6e1f822fecb22bcb351e7fec32eee9ac6810c7363" => :el_capitan
|
2017-07-21 18:22:50 +00:00
|
|
|
end
|
|
|
|
|
2018-05-07 08:13:14 +00:00
|
|
|
depends_on "dep" => :build
|
2017-07-15 08:17:55 +00:00
|
|
|
depends_on "go" => :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
|
2018-05-07 08:13:14 +00:00
|
|
|
system "dep", "ensure"
|
2017-08-10 19:12:08 +00:00
|
|
|
system "go", "build", "-tags", "noautoupgrade nofirstrun", "-o", bin/"akamai"
|
2017-10-05 00:19:30 +00:00
|
|
|
prefix.install_metafiles
|
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
|