diff --git a/Formula/venctl.rb b/Formula/venctl.rb new file mode 100644 index 0000000..1c80d71 --- /dev/null +++ b/Formula/venctl.rb @@ -0,0 +1,33 @@ +class Venctl < Formula + desc "Venafi CLI tool can carry out cluster management tasks from the command-line" + homepage "https://docs.venafi.cloud/vaas/venctl/c-venctl-overview" + version "1.3.1" + on_macos do + if Hardware::CPU.arm? + url "https://dl.venafi.cloud/venctl/#{version}/venctl-darwin-arm64.zip" + sha256 "9513f6d19afe697a8f04a46bdf0c65b1a34cda15cbcfd53e4b147914ce6f768f" + else + url "https://dl.venafi.cloud/venctl/#{version}/venctl-darwin-amd64.zip" + sha256 "eaf728c5824b9c317e033fd082a99222b9dcfba858d9b2af0867816273a9d926" + end + end + + on_linux do + if Hardware::CPU.arm? + url "https://dl.venafi.cloud/venctl/#{version}/venctl-linux-arm64.zip" + sha256 "c1379600daf9e5f1df0e7dbbb7e3b39e7672844fac98dd72f319259bc2f74596" + else + url "https://dl.venafi.cloud/venctl/#{version}/venctl-linux-amd64.zip" + sha256 "2743d0ac27a515177c4351a8be70870922332058c2e443868a958ffc865b3cd4" + end + end + + def install + bin.install "venctl" + end + + test do + # Validate install + system "#{bin}/venctl", "version" + end +end diff --git a/README.md b/README.md index 4fea83c..9d141b9 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ Or `brew tap venafi/tap` and then `brew install `. | [vcert](https://github.com/venafi/vcert) | [formula](Formula/vcert.rb) | Venafi Machine Identity Services Golang CLI and SDK | | [sigscan](https://github.com/venafi/sigscan) | [formula](Formula/sigscan.rb) | Inspect container images and other artifacts for signatures | | [vsign](https://github.com/venafi/vsign) | [formula](Formula/vsign.rb) | Venafi CodeSign Protect Golang CLI and SDK | +| [venctl](https://docs.venafi.cloud/vaas/venctl/c-venctl-overview/) | [formula](Formula/venctl.rb) | Venafi cluster management | ## Documentation -`brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh). \ No newline at end of file +`brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh).