From 34c69764d02a8b68cb18751d071511325a199c73 Mon Sep 17 00:00:00 2001 From: Ivan Wallis Date: Fri, 23 Feb 2024 16:34:38 -0800 Subject: [PATCH 1/2] vssh v1.0.2 --- Formula/vssh.rb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Formula/vssh.rb diff --git a/Formula/vssh.rb b/Formula/vssh.rb new file mode 100644 index 0000000..86a3e74 --- /dev/null +++ b/Formula/vssh.rb @@ -0,0 +1,38 @@ +class Vssh < Formula + desc "Venafi Machine Identity Services CLI for SSH access" + homepage "https://github.com/Venafi/vssh-cli" + url "https://github.com/Venafi/vssh-cli/archive/refs/tags/v1.0.2023091815.tar.gz" + license "Apache-2.0" + head "https://github.com/venafi/vssh-cli.git", tag: "v1.0.2023091815" + + on_macos do + if Hardware::CPU.intel? + url "https://github.com/Venafi/vssh-cli/releases/download/v1.0.2023091815/vssh_darwin_amd64.zip" + sha256 "b8f315a71f8fe493bb434a18129954dd8b3af903422c3687272f6a17040ee897" + end + if Hardware::CPU.arm? + url "https://github.com/Venafi/vssh-cli/releases/download/v1.0.2023091815/vssh_darwin_arm64.zip" + sha256 "061bd8ddb198dc0a0668dfc74a09ea6193c5b5541b22f4c1000fa4a994190bc6" + end + end + + on_linux do + if Hardware::CPU.intel? && Hardware::CPU.is_64_bit? + url "https://github.com/Venafi/vssh-cli/releases/download/v1.0.2023091815/vssh_linux_amd64.zip" + sha256 "2a5f38c10e2debcde9d27f92a336734f2f5c741c66aa4f39b993066d6ec46d4c" + end + if Hardware::CPU.intel? && Hardware::CPU.is_32_bit? + url "https://github.com/Venafi/vssh-cli/releases/download/v1.0.2023091815/vssh_linux_386.zip" + sha256 "28c2207621c4b2073d17bcb70f243a3e5c41d70c1aadc3dad20e5aa707c89715" + end + end + + def install + bin.install "vssh" + end + + test do + # Validate install + system "#{bin}/vssh", "version" + end +end From b008d33acc1f268d10d9a4bb51bbc19dc003c929 Mon Sep 17 00:00:00 2001 From: Ivan Wallis Date: Fri, 23 Feb 2024 16:36:40 -0800 Subject: [PATCH 2/2] readme update --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9d141b9..c36335e 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Or `brew tap venafi/tap` and then `brew install `. | [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 | +| [vssh](https://github.com/Venafi/vssh-cli) | [formula](Formula/vssh.rb) | Venafi Machine Identity Services CLI for SSH access | ## Documentation