From cdff201fb3512c71b4ea0c1b8a288954558f2e5f Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Sat, 21 Sep 2024 10:05:44 +1000 Subject: [PATCH] sidekick-cli 0.5.3 (new formula) --- Formula/s/sidekick-cli.rb | 19 +++++++++++++++++++ 1 file changed, 19 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 00000000000000..ee028eea7d13d4 --- /dev/null +++ b/Formula/s/sidekick-cli.rb @@ -0,0 +1,19 @@ +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", output: bin/"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