-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvenctl.rb
36 lines (33 loc) · 1.2 KB
/
venctl.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class Venctl < Formula
desc "Venafi CLI serves as an alternative to the Venafi Control Plane web interface"
homepage "https://docs.venafi.cloud/vaas/venctl/c-venctl-overview"
url "https://docs.venafi.cloud/vaas/venctl/c-venctl-releases"
version "1.15.4"
on_macos do
if Hardware::CPU.intel?
url "https://dl.venafi.cloud/venctl/#{version}/venctl-darwin-amd64.zip"
sha256 "260e6aefba3915fe37d3d95097b7b9f91abaa09660d6b7b6c787c06669a1643b"
end
if Hardware::CPU.arm?
url "https://dl.venafi.cloud/venctl/#{version}/venctl-darwin-arm64.zip"
sha256 "1decb7f144e374e77a6407f4cf207fbbc63499ebf685ee23b040c8a121bfc9a0"
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://dl.venafi.cloud/venctl/#{version}/venctl-linux-amd64.zip"
sha256 "9e8b1d366b16d457c73ea26436f09f1fca1d0f55b4d66170fb852a64c5dc20a6"
end
if Hardware::CPU.arm?
url "https://dl.venafi.cloud/venctl/#{version}/venctl-linux-arm64.zip"
sha256 "20fc481faa828426e50d2e8ab12d3ed3dee7c182499cef5a2317de15758d6bdd"
end
end
def install
bin.install "venctl"
end
test do
# Validate install
system "#{bin}/venctl", "version"
end
end