-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnctl.rb
More file actions
58 lines (53 loc) · 2.19 KB
/
nctl.rb
File metadata and controls
58 lines (53 loc) · 2.19 KB
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
# 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.14.2"
license "Apache 2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/ninech/nctl/releases/download/v1.14.2/nctl_1.14.2_darwin_amd64.tar.gz"
sha256 "5582d36552c29840bf3a31ce9e8ca54200db28acce2a25a87d465314e262951b"
define_method(:install) do
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.14.2/nctl_1.14.2_darwin_arm64.tar.gz"
sha256 "c8d5806f3f2c83e4477b055ef0a4fedc247c5693236a4e5dbb23ab1998a31788"
define_method(:install) do
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? && Hardware::CPU.is_64_bit?
url "https://github.com/ninech/nctl/releases/download/v1.14.2/nctl_1.14.2_linux_amd64.tar.gz"
sha256 "7ef737bc504b4b6254c5cc4c638a465414ad17ae92ca4bfef0f901daf831a7fd"
define_method(:install) do
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? && Hardware::CPU.is_64_bit?
url "https://github.com/ninech/nctl/releases/download/v1.14.2/nctl_1.14.2_linux_arm64.tar.gz"
sha256 "7d975040ff54a98a4256fa0866ed8cb7c414399a21d2543b505fe07c97c31e0a"
define_method(:install) do
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