mirror of
https://github.com/lukaszraczylo/homebrew-taps.git
synced 2026-06-30 03:35:15 +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.2"
|
|
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.2/kportal-0.1.1-rc.2-darwin-amd64.tar.gz"
|
|
sha256 "524e1f04864bb28481032d3b5adb94070ce69b1f83ddcf232f65eb8b65784233"
|
|
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/lukaszraczylo/kportal/releases/download/v0.1.1-rc.2/kportal-0.1.1-rc.2-darwin-arm64.tar.gz"
|
|
sha256 "647897feb656fdcc6f0dedca6de5f204f07a6a643daf1abdd0c38d62b518a018"
|
|
|
|
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.2/kportal-0.1.1-rc.2-linux-amd64.tar.gz"
|
|
sha256 "014a99db68416b4369d9fbe71a3289e16e8336a49eaf33ce3f8010248aa7c508"
|
|
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.2/kportal-0.1.1-rc.2-linux-arm64.tar.gz"
|
|
sha256 "d0f12a01709bf01d7ec71e37e41391c3fb978715ea4be81f24af23e7da339276"
|
|
def install
|
|
bin.install "kportal"
|
|
end
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/kportal", "--version"
|
|
end
|
|
end
|