-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
ktunnel.rb
53 lines (44 loc) · 1.5 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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.6.1"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/omrikiei/ktunnel/releases/download/v1.6.1/ktunnel_1.6.1_Darwin_arm64.tar.gz"
sha256 "fcd3b7c6fc5dc72bcb7ccc5f735f271fdb43e30cae680e3eb09c28bb3dee7866"
def install
bin.install "ktunnel"
end
end
if Hardware::CPU.intel?
url "https://github.com/omrikiei/ktunnel/releases/download/v1.6.1/ktunnel_1.6.1_Darwin_x86_64.tar.gz"
sha256 "b1ceb7fe8b40b96020ffa6ead1b59deadc0facb05064627e9175a20c109fd8b2"
def install
bin.install "ktunnel"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/omrikiei/ktunnel/releases/download/v1.6.1/ktunnel_1.6.1_Linux_arm64.tar.gz"
sha256 "23620e0beca7d7efbe35f064f825dc8deda7994df3e402193a65fece179b2b8b"
def install
bin.install "ktunnel"
end
end
if Hardware::CPU.intel?
url "https://github.com/omrikiei/ktunnel/releases/download/v1.6.1/ktunnel_1.6.1_Linux_x86_64.tar.gz"
sha256 "6665722db841a1df29fd733bb46c08e2a109753638f080218e9ebba7e96fa873"
def install
bin.install "ktunnel"
end
end
end
head "https://github.com/omrikiei/ktunnel.git"
test do
system "#{bin}/program version"
end
end