mirror of
https://github.com/lukaszraczylo/homebrew-taps.git
synced 2026-07-07 04:34:30 +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.16"
|
|
license "MIT"
|
|
|
|
depends_on "kubernetes-cli" => :optional
|
|
|
|
on_macos do
|
|
if Hardware::CPU.intel?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.16/kportal-0.2.16-darwin-amd64.tar.gz"
|
|
sha256 "d4bdf60e5e0552e16dbbb69ab573913359dd4a662bf1202a078a00bfb3d0f78d"
|
|
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.16/kportal-0.2.16-darwin-arm64.tar.gz"
|
|
sha256 "6aebba8abb530c1f3c538a5371abb3ed29f2e0f17f32964e711a12a054c7f55b"
|
|
|
|
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.16/kportal-0.2.16-linux-amd64.tar.gz"
|
|
sha256 "4c1b2bee1b5970b7594c39113e71ab34e468ede944a397e52e1c2045c3435a95"
|
|
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.16/kportal-0.2.16-linux-arm64.tar.gz"
|
|
sha256 "00e9c1da36f3f5805004f21300873c2dfa51cde87d4dc3e726edf9cb3e5ed692"
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/kportal", "--version"
|
|
end
|
|
end
|