-
Notifications
You must be signed in to change notification settings - Fork 0
/
nctl.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.2"
license "Apache 2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/ninech/nctl/releases/download/v1.8.2/nctl_1.8.2_darwin_amd64.tar.gz"
sha256 "a26b330d4eb20517db00e886d1ac9d3065fd018945c138e6d6284a59a742baea"
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.2/nctl_1.8.2_darwin_arm64.tar.gz"
sha256 "9ccccb8432b5e763b16342f27616e9c925eb6956dfce738909459a07cce4d0b7"
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.2/nctl_1.8.2_linux_amd64.tar.gz"
sha256 "b3b911b0bf40d1c5143725b730a849144d8b75ba0c4c435cb660ed7bcfa8bbdc"
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.2/nctl_1.8.2_linux_arm64.tar.gz"
sha256 "fb63e041df95bb7623615a9e955c25c11c2e04d657bab9c15466f31ea757cdab"
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