mirror of
https://github.com/lukaszraczylo/homebrew-taps.git
synced 2026-06-11 00:08:50 +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.18"
|
|
license "MIT"
|
|
|
|
depends_on "kubernetes-cli" => :optional
|
|
|
|
on_macos do
|
|
if Hardware::CPU.intel?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.18/kportal-0.2.18-darwin-amd64.tar.gz"
|
|
sha256 "30892f9f2371270ea47a500a156fbd7c656756005638d2300e2055e3fcf24385"
|
|
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.18/kportal-0.2.18-darwin-arm64.tar.gz"
|
|
sha256 "272ff7dc820bdadcfdab08958271e910384c06c217935bbb852e9dc952e7cd39"
|
|
|
|
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.18/kportal-0.2.18-linux-amd64.tar.gz"
|
|
sha256 "828a99d3d4e3a22368a2455087e20e584ae9dc402515299f14248f6ad3ebfd27"
|
|
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.18/kportal-0.2.18-linux-arm64.tar.gz"
|
|
sha256 "a50e163d18a22fa1069d8a4ff22c468b7d2697393e757c59bc2ac54a2e004a09"
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/kportal", "--version"
|
|
end
|
|
end
|