-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli.rb
55 lines (48 loc) · 1.71 KB
/
cli.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 Cli < Formula
desc "The CLI for Humanitec, humctl."
homepage "https://developer.humanitec.com/platform-orchestrator/cli/"
version "0.32.0"
on_macos do
on_intel do
url "https://github.com/humanitec/cli/releases/download/v0.32.0/cli_0.32.0_darwin_amd64.tar.gz"
sha256 "25a0efa25fe2dd804f2ecb3194e304e5188f5029303157254e90d98b0c6a9040"
def install
bin.install "humctl"
generate_completions_from_executable(bin/"humctl", "completion")
end
end
on_arm do
url "https://github.com/humanitec/cli/releases/download/v0.32.0/cli_0.32.0_darwin_arm64.tar.gz"
sha256 "ebf82a701f704d9f21304df1c078bcd0c810bf2c436ab28e8481fa7c78396eb0"
def install
bin.install "humctl"
generate_completions_from_executable(bin/"humctl", "completion")
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/humanitec/cli/releases/download/v0.32.0/cli_0.32.0_linux_amd64.tar.gz"
sha256 "c0154b13e24490b0023b83a044dbefbbb8a394bf0e6d13c490f85d39d79b157d"
def install
bin.install "humctl"
generate_completions_from_executable(bin/"humctl", "completion")
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/humanitec/cli/releases/download/v0.32.0/cli_0.32.0_linux_arm64.tar.gz"
sha256 "99106e8737abc136ebd69809bbf4db41ce6919ccfb3758f378a959755677759a"
def install
bin.install "humctl"
generate_completions_from_executable(bin/"humctl", "completion")
end
end
end
end
end