forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathakamai.rb
23 lines (19 loc) · 893 Bytes
/
akamai.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Akamai < Formula
desc "CLI toolkit for working with Akamai's APIs"
homepage "https://github.com/akamai/cli"
url "https://github.com/akamai/cli/archive/1.2.1.tar.gz"
sha256 "92c0b08b1459f5957ad03f1424252a9e0bca6d03e542a8925107039ab9a7b564"
license "Apache-2.0"
bottle do
sha256 cellar: :any_skip_relocation, big_sur: "842b169770e4426d42f8b5263d6f9b0dea954f9f02a682c66faeae73f30646c2"
sha256 cellar: :any_skip_relocation, catalina: "6ec819f683c492b61fb18fad43515d7ce85c4c00d80bcc6ff3b2cc6ef098bf3f"
sha256 cellar: :any_skip_relocation, mojave: "9a34412f05ecbbae48a65983548495cd0ebc5ad234f358163f714accfd44091a"
end
depends_on "go" => :build
def install
system "go", "build", "-tags", "noautoupgrade nofirstrun", *std_go_args, "cli/main.go"
end
test do
assert_match "Purge", pipe_output("#{bin}/akamai install --force purge", "n")
end
end