-
Notifications
You must be signed in to change notification settings - Fork 5
/
cirrus.rb
73 lines (64 loc) · 2.15 KB
/
cirrus.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
65
66
67
68
69
70
71
72
73
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Cirrus < Formula
desc ""
homepage ""
version "0.130.2"
license "AGPL-3.0-only"
on_macos do
on_intel do
url "https://github.com/cirruslabs/cirrus-cli/releases/download/v0.130.2/cirrus-darwin-amd64.tar.gz"
sha256 "f928e04a1830dd91a580691c0f30a29f38b2ae078abb6c38b0fb3a8ba041d84e"
def install
bin.install "cirrus"
generate_completions_from_executable(bin/"cirrus", "completion")
end
end
on_arm do
url "https://github.com/cirruslabs/cirrus-cli/releases/download/v0.130.2/cirrus-darwin-arm64.tar.gz"
sha256 "7f4554e50c651359dc2c166cef5e94aad4cc2da8715427e9e0ae812f7afa4038"
def install
bin.install "cirrus"
generate_completions_from_executable(bin/"cirrus", "completion")
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/cirruslabs/cirrus-cli/releases/download/v0.130.2/cirrus-linux-amd64.tar.gz"
sha256 "8d8803a5d604572c8c8f7a040f5d85fba63781b9f382d05eff865a9b47a32469"
def install
bin.install "cirrus"
generate_completions_from_executable(bin/"cirrus", "completion")
end
end
end
on_arm do
if !Hardware::CPU.is_64_bit?
url "https://github.com/cirruslabs/cirrus-cli/releases/download/v0.130.2/cirrus-linux-arm.tar.gz"
sha256 "4ccea557d79e5433ecdc457b7b6fcc2ea059efc1b060a96b1be4710b358ab343"
def install
bin.install "cirrus"
generate_completions_from_executable(bin/"cirrus", "completion")
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/cirruslabs/cirrus-cli/releases/download/v0.130.2/cirrus-linux-arm64.tar.gz"
sha256 "1eb29777ee62289716b01820260ea502b64bd6f773322d2fd926cbd82c28522a"
def install
bin.install "cirrus"
generate_completions_from_executable(bin/"cirrus", "completion")
end
end
end
end
def caveats
<<~EOS
See the Github repository for more information
EOS
end
end