mirror of
https://github.com/lukaszraczylo/homebrew-taps.git
synced 2026-06-29 03:34:28 +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.38"
|
|
license "MIT"
|
|
|
|
depends_on "kubernetes-cli" => :optional
|
|
|
|
on_macos do
|
|
if Hardware::CPU.intel?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.38/kportal-0.2.38-darwin-amd64.tar.gz"
|
|
sha256 "58dc03c4ef25043fe7a824f4976522c2afc7c84fd520c8d7a87e42dff3b2fc57"
|
|
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.2.38/kportal-0.2.38-darwin-arm64.tar.gz"
|
|
sha256 "a953ff4e7c5baa09315c6e91ef887397ba523d36157df5abfd18c909f378193f"
|
|
|
|
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.38/kportal-0.2.38-linux-amd64.tar.gz"
|
|
sha256 "5df2b05cabc4905b612501c89c46696c2cc2a230bb3dc6149d2651895999209c"
|
|
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.38/kportal-0.2.38-linux-arm64.tar.gz"
|
|
sha256 "b1d0cc050dfdf2d4fc7c97e8ea1a4d83062bd11e62963d9b6600090b77fbf989"
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/kportal", "--version"
|
|
end
|
|
end
|