-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnctl.rb
64 lines (57 loc) · 2.19 KB
/
nctl.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
56
57
58
59
60
61
62
63
64
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Nctl < Formula
desc "Interact with Nine API resources."
homepage "https://github.com/ninech/nctl"
version "1.8.5"
license "Apache 2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/ninech/nctl/releases/download/v1.8.5/nctl_1.8.5_darwin_amd64.tar.gz"
sha256 "ac14f268a6c6e0f3fad5f0ce111982f942467eeaa827498735643199fbf1b946"
def install
bin.install "nctl"
bash_completion.install "completions/nctl.bash" => "nctl"
zsh_completion.install "completions/nctl.zsh" => "_nctl"
fish_completion.install "completions/nctl.fish"
end
end
if Hardware::CPU.arm?
url "https://github.com/ninech/nctl/releases/download/v1.8.5/nctl_1.8.5_darwin_arm64.tar.gz"
sha256 "b045981736db08e7da7212973d6763795c096f852a5a66b30cfdaae838ba9099"
def install
bin.install "nctl"
bash_completion.install "completions/nctl.bash" => "nctl"
zsh_completion.install "completions/nctl.zsh" => "_nctl"
fish_completion.install "completions/nctl.fish"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/ninech/nctl/releases/download/v1.8.5/nctl_1.8.5_linux_amd64.tar.gz"
sha256 "98ee87847af6623b5bc50f7e625219bb6f5d0d110550e31f2fb25b365ec26c01"
def install
bin.install "nctl"
bash_completion.install "completions/nctl.bash" => "nctl"
zsh_completion.install "completions/nctl.zsh" => "_nctl"
fish_completion.install "completions/nctl.fish"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/ninech/nctl/releases/download/v1.8.5/nctl_1.8.5_linux_arm64.tar.gz"
sha256 "b21bff0963721275fd1dea91254986fe0948ea8f4f1e7a21d62c526c3bf98920"
def install
bin.install "nctl"
bash_completion.install "completions/nctl.bash" => "nctl"
zsh_completion.install "completions/nctl.zsh" => "_nctl"
fish_completion.install "completions/nctl.fish"
end
end
end
end
end