Skip to content

Commit

Permalink
add new release of YBM CLI to brew (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
posriniv authored May 9, 2024
1 parent 3a30686 commit 045e028
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Formula/ybm.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand Down
44 changes: 44 additions & 0 deletions Formula/ybm@0.1.19.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 045e028

Please sign in to comment.