mirror of
https://github.com/lukaszraczylo/homebrew-taps.git
synced 2026-07-06 04:24:54 +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.19"
|
|
license "MIT"
|
|
|
|
depends_on "kubernetes-cli" => :optional
|
|
|
|
on_macos do
|
|
if Hardware::CPU.intel?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.19/kportal-0.2.19-darwin-amd64.tar.gz"
|
|
sha256 "549579f60e6aa3461bd79fe1feadf3f7502ab6f2f02625fd7f50a63312778974"
|
|
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.19/kportal-0.2.19-darwin-arm64.tar.gz"
|
|
sha256 "81fbbe03e64bad52fe1cf5e29863ae77cc8119548cd9f2afbeec69226a1d62ee"
|
|
|
|
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.19/kportal-0.2.19-linux-amd64.tar.gz"
|
|
sha256 "be2d621ec4a595ee165501543adc1e848452db101199545d262bef4ac13c01c4"
|
|
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.19/kportal-0.2.19-linux-arm64.tar.gz"
|
|
sha256 "4339a9c930c2630d5fb485ffbd9573b4b07f46bda2bbdb87cea7212fa6c9f86e"
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/kportal", "--version"
|
|
end
|
|
end
|