forked from omrikiei/ktunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
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.5.3"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/omrikiei/ktunnel/releases/download/v1.5.3/ktunnel_1.5.3_Darwin_x86_64.tar.gz"
sha256 "1f94f9100408c67162a3eb208d83f59c4df4bec57aef23c5678ecdc4ab067eed"
def install
bin.install "ktunnel"
end
end
if Hardware::CPU.arm?
url "https://github.com/omrikiei/ktunnel/releases/download/v1.5.3/ktunnel_1.5.3_Darwin_arm64.tar.gz"
sha256 "3c38eb8ff1bb7e0b43044e18fc2b72582ed934b17e872dd208188d452e8680b1"
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.5.3/ktunnel_1.5.3_Linux_arm64.tar.gz"
sha256 "7605d193597dd49089e159931bccaf9a99a7d0c4525b75d97fdf90d04f64f836"
def install
bin.install "ktunnel"
end
end
if Hardware::CPU.intel?
url "https://github.com/omrikiei/ktunnel/releases/download/v1.5.3/ktunnel_1.5.3_Linux_x86_64.tar.gz"
sha256 "f043a8cde840fafd9579b79c0855657d9e8397cb75fd3d98bfcfa34b323c8fdb"
def install
bin.install "ktunnel"
end
end
end
head "https://github.com/omrikiei/ktunnel.git"
test do
system "#{bin}/program version"
end
end