mirror of
https://github.com/lukaszraczylo/homebrew-taps.git
synced 2026-06-10 00:00:32 +00:00
53 lines
1.6 KiB
Ruby
53 lines
1.6 KiB
Ruby
# typed: false
|
|
# frozen_string_literal: true
|
|
|
|
# This file was generated by GoReleaser. DO NOT EDIT.
|
|
class Kportal < Formula
|
|
desc "Modern Kubernetes port-forward manager with interactive TUI"
|
|
homepage "https://lukaszraczylo.github.io/kportal"
|
|
version "0.2.29"
|
|
license "MIT"
|
|
|
|
depends_on "kubernetes-cli" => :optional
|
|
|
|
on_macos do
|
|
if Hardware::CPU.intel?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.29/kportal-0.2.29-darwin-amd64.tar.gz"
|
|
sha256 "04b482a31892f2a8dbb4a0a076feb1a2ae7eb1e2d55a17dcd938739a03a84cd2"
|
|
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.29/kportal-0.2.29-darwin-arm64.tar.gz"
|
|
sha256 "6ffe0e18d9d80dc413d8bc2c1bc4b7df1f6b9335f19ef5f593d490c5912309fe"
|
|
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
end
|
|
|
|
on_linux do
|
|
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.29/kportal-0.2.29-linux-amd64.tar.gz"
|
|
sha256 "86f3f95dda210ee756a6625531132465d4b1de43e1eedf72d2c53c51c05394a3"
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.29/kportal-0.2.29-linux-arm64.tar.gz"
|
|
sha256 "21a62ef0d49ac19e4a1bc36e922f7c77fd687c70ec62eac1a6d85076c2c4ee14"
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/kportal", "--version"
|
|
end
|
|
end
|