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.1.1-rc.1"
|
|
license "MIT"
|
|
|
|
depends_on "kubernetes-cli" => :optional
|
|
|
|
on_macos do
|
|
if Hardware::CPU.intel?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.1.1-rc.1/kportal-0.1.1-rc.1-darwin-amd64.tar.gz"
|
|
sha256 "e6f8208f9e41717ff489cf985856e0c7330b8ea9bd4e49569509d764498ed98a"
|
|
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.1.1-rc.1/kportal-0.1.1-rc.1-darwin-arm64.tar.gz"
|
|
sha256 "1ae50c893afba1c7e092cde84cd2aca24edfc1b71848cf7b8f14852c61236648"
|
|
|
|
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.1.1-rc.1/kportal-0.1.1-rc.1-linux-amd64.tar.gz"
|
|
sha256 "ab4ce72faff5982e195483f983b667c4d40d15184eeef8b930eb81429947e122"
|
|
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.1.1-rc.1/kportal-0.1.1-rc.1-linux-arm64.tar.gz"
|
|
sha256 "a6c99d1f82630a828cc1e0dc2cc83b84919a1f806e1562c45709a6c0b125c894"
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/kportal", "--version"
|
|
end
|
|
end
|