From 045e0283d1d95df10eec7ba72e582fd548a4a016 Mon Sep 17 00:00:00 2001 From: Srinivas Pothuraju Date: Thu, 9 May 2024 14:46:13 -0500 Subject: [PATCH] add new release of YBM CLI to brew (#85) --- Formula/ybm.rb | 18 +++++++++--------- Formula/ybm@0.1.19.rb | 44 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 9 deletions(-) create mode 100644 Formula/ybm@0.1.19.rb diff --git a/Formula/ybm.rb b/Formula/ybm.rb index 2dc6656..54ff326 100644 --- a/Formula/ybm.rb +++ b/Formula/ybm.rb @@ -1,21 +1,21 @@ class Ybm < Formula desc "YugabyteDB Managed CLI" homepage "https://github.com/yugabyte/ybm-cli" - version "0.1.18" + version "0.1.19" license "Apache-2.0" on_macos do if Hardware::CPU.intel? - url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.18/ybm_0.1.18_darwin_amd64.zip" - sha256 "660045ce9a55e3c1550274901d3795e728b3ab93d92d51a0db48e8fa6d66cedc" + url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.19/ybm_0.1.19_darwin_amd64.zip" + sha256 "1d21f5d71830137020ba7bd7f3236dd2211f22752727a8e32735f77a944c9260" def install bin.install "ybm" end end if Hardware::CPU.arm? - url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.18/ybm_0.1.18_darwin_arm64.zip" - sha256 "267cf914f0a496f2fdbcc817e44c4a7d3ad00bfb6c5fd27574b7f564526eac73" + url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.19/ybm_0.1.19_darwin_arm64.zip" + sha256 "2a25b471e50c149210344958c93e27ba5656dcc2048b75150152bd04437edf50" def install bin.install "ybm" @@ -25,16 +25,16 @@ def install on_linux do if Hardware::CPU.intel? - url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.18/ybm_0.1.18_linux_amd64.zip" - sha256 "64cd58e80821f162bb15083529008926337de76d73d37364f4fbf3d67c034b13" + url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.19/ybm_0.1.19_linux_amd64.zip" + sha256 "a226e2de7ec283588a8b419e45464e742c5e0f5f4cb066635835b0222e92d6c8" def install bin.install "ybm" end end if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.18/ybm_0.1.18_linux_arm64.zip" - sha256 "63f9783787fd9419a9a252777a07b0dd28e9eb70dacaec1b8bff01d9d8cb422b" + url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.19/ybm_0.1.19_linux_arm64.zip" + sha256 "53170c257c932eba1096d35c1638f2bfc5049367144aa418da9dd70236568598" def install bin.install "ybm" diff --git a/Formula/ybm@0.1.19.rb b/Formula/ybm@0.1.19.rb new file mode 100644 index 0000000..54ff326 --- /dev/null +++ b/Formula/ybm@0.1.19.rb @@ -0,0 +1,44 @@ +class Ybm < Formula + desc "YugabyteDB Managed CLI" + homepage "https://github.com/yugabyte/ybm-cli" + version "0.1.19" + license "Apache-2.0" + + on_macos do + if Hardware::CPU.intel? + url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.19/ybm_0.1.19_darwin_amd64.zip" + sha256 "1d21f5d71830137020ba7bd7f3236dd2211f22752727a8e32735f77a944c9260" + + def install + bin.install "ybm" + end + end + if Hardware::CPU.arm? + url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.19/ybm_0.1.19_darwin_arm64.zip" + sha256 "2a25b471e50c149210344958c93e27ba5656dcc2048b75150152bd04437edf50" + + def install + bin.install "ybm" + end + end + end + + on_linux do + if Hardware::CPU.intel? + url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.19/ybm_0.1.19_linux_amd64.zip" + sha256 "a226e2de7ec283588a8b419e45464e742c5e0f5f4cb066635835b0222e92d6c8" + + def install + bin.install "ybm" + end + end + if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? + url "https://github.com/yugabyte/ybm-cli/releases/download/v0.1.19/ybm_0.1.19_linux_arm64.zip" + sha256 "53170c257c932eba1096d35c1638f2bfc5049367144aa418da9dd70236568598" + + def install + bin.install "ybm" + end + end + end +end