From b750b5ebe606e5e56b92f6de8aa27a9b20d3cc5a Mon Sep 17 00:00:00 2001 From: apecloud-bot Date: Fri, 22 Dec 2023 02:51:34 +0000 Subject: [PATCH] chore: auto update kbcli version --- Formula/kbcli.rb | 22 +++++++++++----------- Formula/kbcli@0.7.2.rb | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 11 deletions(-) create mode 100644 Formula/kbcli@0.7.2.rb diff --git a/Formula/kbcli.rb b/Formula/kbcli.rb index c8ba9c8..f7b4f9c 100644 --- a/Formula/kbcli.rb +++ b/Formula/kbcli.rb @@ -1,31 +1,31 @@ class Kbcli < Formula desc "Command-line for KubeBlocks" homepage "https://kubeblocks.io/" - version "0.7.1" + version "0.7.2" if OS.mac? && Hardware::CPU.intel? - url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.1/kbcli-darwin-amd64-v0.7.1.tar.gz" - sha256 "84547972ab337a7637762adea5e1be3e20c8d2bb91cadc29ca0a23aaaf7525bd" + url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.2/kbcli-darwin-amd64-v0.7.2.tar.gz" + sha256 "5262e3280d4387bf56f8b011fdaab975d23d35808407647436c407f9930d0230" end if OS.mac? && Hardware::CPU.arm? - url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.1/kbcli-darwin-arm64-v0.7.1.tar.gz" - sha256 "8ec38cae7b3ac87ee3b71acefc2091d507e76d2c68c1737b7703de7eb836d114" + url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.2/kbcli-darwin-arm64-v0.7.2.tar.gz" + sha256 "91ab8d248bf065b40dd0f8899174ea5c9752173d0c802b81278e250527dd001b" end if OS.linux? && Hardware::CPU.intel? - url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.1/kbcli-linux-amd64-v0.7.1.tar.gz" - sha256 "7bee4b1e84b83853298c7e82f8af41cd902b29424003532f55aa555520909618" + url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.2/kbcli-linux-amd64-v0.7.2.tar.gz" + sha256 "b11ace8d151f693065582ecb767fdb26fd1e80a1435759b1f1976c9cbd8b9cb1" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.1/kbcli-linux-amd64-v0.7.1.tar.gz" - sha256 "7bee4b1e84b83853298c7e82f8af41cd902b29424003532f55aa555520909618" + url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.2/kbcli-linux-amd64-v0.7.2.tar.gz" + sha256 "b11ace8d151f693065582ecb767fdb26fd1e80a1435759b1f1976c9cbd8b9cb1" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.1/kbcli-linux-arm64-v0.7.1.tar.gz" - sha256 "7bee4b1e84b83853298c7e82f8af41cd902b29424003532f55aa555520909618" + url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.2/kbcli-linux-arm64-v0.7.2.tar.gz" + sha256 "b11ace8d151f693065582ecb767fdb26fd1e80a1435759b1f1976c9cbd8b9cb1" end conflicts_with "kbcli" diff --git a/Formula/kbcli@0.7.2.rb b/Formula/kbcli@0.7.2.rb new file mode 100644 index 0000000..c077195 --- /dev/null +++ b/Formula/kbcli@0.7.2.rb @@ -0,0 +1,41 @@ +class KbcliAT072 < Formula + desc "Command-line for KubeBlocks" + homepage "https://kubeblocks.io/" + version "0.7.2" + + if OS.mac? && Hardware::CPU.intel? + url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.2/kbcli-darwin-amd64-v0.7.2.tar.gz" + sha256 "5262e3280d4387bf56f8b011fdaab975d23d35808407647436c407f9930d0230" + end + + if OS.mac? && Hardware::CPU.arm? + url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.2/kbcli-darwin-arm64-v0.7.2.tar.gz" + sha256 "91ab8d248bf065b40dd0f8899174ea5c9752173d0c802b81278e250527dd001b" + end + + if OS.linux? && Hardware::CPU.intel? + url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.2/kbcli-linux-amd64-v0.7.2.tar.gz" + sha256 "b11ace8d151f693065582ecb767fdb26fd1e80a1435759b1f1976c9cbd8b9cb1" + end + + if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? + url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.2/kbcli-linux-amd64-v0.7.2.tar.gz" + sha256 "b11ace8d151f693065582ecb767fdb26fd1e80a1435759b1f1976c9cbd8b9cb1" + end + + if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? + url "https://jihulab.com/api/v4/projects/85948/packages/generic/kubeblocks/v0.7.2/kbcli-linux-arm64-v0.7.2.tar.gz" + sha256 "b11ace8d151f693065582ecb767fdb26fd1e80a1435759b1f1976c9cbd8b9cb1" + end + + conflicts_with "kbcli" + + def install + bin.install "kbcli" + generate_completions_from_executable(bin/"kbcli", "completion", shells: [:bash, :zsh]) + end + + test do + system "#{bin}/kbcli", "version" + end +end