From 2a29cb4c2a3a35cfffca3bb976f52caf2244e937 Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Sat, 21 Sep 2024 00:05:28 +1000 Subject: [PATCH] sidekick-cli 0.5.3 (new formula) --- Formula/s/sidekick-cli.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Formula/s/sidekick-cli.rb diff --git a/Formula/s/sidekick-cli.rb b/Formula/s/sidekick-cli.rb new file mode 100644 index 000000000000..adb78ffe9cb1 --- /dev/null +++ b/Formula/s/sidekick-cli.rb @@ -0,0 +1,20 @@ +class SidekickCli < Formula + desc "Deploy applications to your VPS" + homepage "https://github.com/MightyMoud/sidekick" + url "https://github.com/MightyMoud/sidekick/archive/refs/tags/v0.5.3.tar.gz" + sha256 "11c6f23c67c122ec6e1e0fa4cd7119f7e044186abe810e08ea97708bb78e0a33" + license "GPL-3.0-only" + + depends_on "go" => :build + + def install + system "go", "build", *std_go_args(ldflags: "-s -w") + bin.install bin/"sidekick-cli" => "sidekick" + end + + test do + assert_match "With sidekick you can deploy any number of applications to a single VPS", + shell_output(bin/"sidekick") + assert_match(/Sidekick config not found - Run sidekick init/, shell_output(bin/"sidekick compose", 1)) + end +end