-
Notifications
You must be signed in to change notification settings - Fork 0
/
nics.rb
55 lines (47 loc) · 1.45 KB
/
nics.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
54
55
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Nics < Formula
desc "nics: Display information about Network Interface Cards (NICs)"
homepage "https://github.com/jftuga/nics"
version "1.5.2"
on_macos do
on_intel do
url "https://github.com/jftuga/nics/releases/download/v1.5.2/nics_1.5.2_darwin_amd64.tar.xz"
sha256 "a4807df1e065b1b8379ef203fd0b3fdbfbd7d2bd4e1f53b91593ce33b704c443"
def install
bin.install "nics"
end
end
on_arm do
url "https://github.com/jftuga/nics/releases/download/v1.5.2/nics_1.5.2_darwin_arm64.tar.xz"
sha256 "621a7b8beee6dbcb1342e2caa0c4826386fde2fc09841791d1aebd6c74f4ae8b"
def install
bin.install "nics"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/jftuga/nics/releases/download/v1.5.2/nics_1.5.2_linux_amd64.tar.xz"
sha256 "a8b130027841455cc28bb470ad6c7cb5c8ce99c51797dee28352bb5188f56d4e"
def install
bin.install "nics"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/jftuga/nics/releases/download/v1.5.2/nics_1.5.2_linux_arm64.tar.xz"
sha256 "21138b2cb03bf65d8c9742a001c1c457faf4081265518dc3d7924fff1e6781b0"
def install
bin.install "nics"
end
end
end
end
test do
system "#{bin}/nics -v"
end
end