Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions Formula/snctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,42 @@
class Snctl < Formula
desc "StreamNative Cloud CLI (snctl)"
homepage "https://streamnative.io/"
version "1.3.0"
version "1.4.0"
license "Apache-2.0"

on_macos do
if Hardware::CPU.intel?
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v1.3.0/snctl_1.3.0_darwin_amd64.tar.gz"
sha256 "2e3286b39cb15df0a441eaf25840a6b27a156f7b280d948a32e7d99367ed6276"
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v1.4.0/snctl_1.4.0_darwin_amd64.tar.gz"
sha256 "4096ca6ac8286a332b8e37930fad005122f1c90669b25bebc8b5764e08a9aada"

def install

Check failure on line 16 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (ubuntu-latest)

Sorbet/BlockMethodDefinition: Do not define methods in blocks (use `define_method` as a workaround).

Check failure on line 16 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (macos-latest)

Sorbet/BlockMethodDefinition: Do not define methods in blocks (use `define_method` as a workaround).
bin.install "snctl"
end
end
if Hardware::CPU.arm?
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v1.3.0/snctl_1.3.0_darwin_arm64.tar.gz"
sha256 "502b6a62e9d387e923ad3de4289369ec0b849162c8946ca2be3c4139c37dfdb4"
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v1.4.0/snctl_1.4.0_darwin_arm64.tar.gz"
sha256 "a649405e112101ccf94ecfdc08655e181ab3fa8335aafe529e0a8c8d71ca6422"

def install

Check failure on line 24 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (ubuntu-latest)

Sorbet/BlockMethodDefinition: Do not define methods in blocks (use `define_method` as a workaround).

Check failure on line 24 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (macos-latest)

Sorbet/BlockMethodDefinition: Do not define methods in blocks (use `define_method` as a workaround).
bin.install "snctl"
end
end
end

on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v1.3.0/snctl_1.3.0_linux_amd64.tar.gz"
sha256 "d4e7c66e3f8cec594cfb796c6a088dd7a5ac563369ef807acf42a36a00631eb4"
if Hardware::CPU.intel? and Hardware::CPU.is_64_bit?

Check failure on line 31 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (ubuntu-latest)

Style/AndOr: Use `&&` instead of `and`.

Check failure on line 31 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (macos-latest)

Style/AndOr: Use `&&` instead of `and`.
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v1.4.0/snctl_1.4.0_linux_amd64.tar.gz"
sha256 "1e610844506492206e0c0c2fa171d88875a9a38569b49a56fe2b17a8368ab758"
def install

Check failure on line 34 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (ubuntu-latest)

Sorbet/BlockMethodDefinition: Do not define methods in blocks (use `define_method` as a workaround).

Check failure on line 34 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (macos-latest)

Sorbet/BlockMethodDefinition: Do not define methods in blocks (use `define_method` as a workaround).
bin.install "snctl"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v1.3.0/snctl_1.3.0_linux_arm64.tar.gz"
sha256 "2864b115e21831f46b9068e1fdcb3fc5eb46dfd27c55995701a52efd88c046ac"
if Hardware::CPU.arm? and Hardware::CPU.is_64_bit?

Check failure on line 38 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (ubuntu-latest)

Style/AndOr: Use `&&` instead of `and`.

Check failure on line 38 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (macos-latest)

Style/AndOr: Use `&&` instead of `and`.
url "https://storage.googleapis.com/downloads.streamnative.cloud/snctl/v1.4.0/snctl_1.4.0_linux_arm64.tar.gz"
sha256 "ab390006c36ab4033e7aaec99f7775dc25c8225800508381abcbd841153b182e"
def install

Check failure on line 41 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (ubuntu-latest)

Sorbet/BlockMethodDefinition: Do not define methods in blocks (use `define_method` as a workaround).

Check failure on line 41 in Formula/snctl.rb

View workflow job for this annotation

GitHub Actions / install (macos-latest)

Sorbet/BlockMethodDefinition: Do not define methods in blocks (use `define_method` as a workaround).
bin.install "snctl"
end
end
end

def install
bin.install "snctl"
end
end
Loading