forked from omrikiei/ktunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ktunnel.rb
38 lines (32 loc) · 1.12 KB
/
ktunnel.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Ktunnel < Formula
desc "Network tunneling tool for kubernetes."
homepage "https://github.com/omrikiei/ktunnel"
version "1.4.1"
bottle :unneeded
on_macos do
if Hardware::CPU.intel?
url "https://github.com/omrikiei/ktunnel/releases/download/v1.4.1/ktunnel_1.4.1_Darwin_x86_64.tar.gz"
sha256 "492b10055fb550fb35f2263da198b36552471e687f90dd61b97f59b554930449"
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/omrikiei/ktunnel/releases/download/v1.4.1/ktunnel_1.4.1_Linux_x86_64.tar.gz"
sha256 "117b6b21b7a9353e18fcc0f1f0a89ee0eeb15bd114123de777820494d17d1a67"
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/omrikiei/ktunnel/releases/download/v1.4.1/ktunnel_1.4.1_Linux_arm64.tar.gz"
sha256 "9160c1036a91b9c1afa874fdb0d2fc4531d94dafa7a691347b210e5b76573861"
end
end
head "https://github.com/omrikiei/ktunnel.git"
def install
bin.install "ktunnel"
end
test do
system "#{bin}/program version"
end
end