-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcirrus.rb
73 lines (64 loc) · 2.21 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.135.0"
license "AGPL-3.0-only"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/cirruslabs/cirrus-cli/releases/download/v0.135.0/cirrus-darwin-amd64.tar.gz"
sha256 "91147c9ba6c13e19e1409e58f2baa8f7a8df6d09861156229d94bd96f39697c4"
def install
bin.install "cirrus"
generate_completions_from_executable(bin/"cirrus", "completion")
end
end
if Hardware::CPU.arm?
url "https://github.com/cirruslabs/cirrus-cli/releases/download/v0.135.0/cirrus-darwin-arm64.tar.gz"
sha256 "060d591b42c73391aa596e4208577c96fa92066c302d7a06e0daae0bf5edc49e"
def install
bin.install "cirrus"
generate_completions_from_executable(bin/"cirrus", "completion")
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/cirruslabs/cirrus-cli/releases/download/v0.135.0/cirrus-linux-amd64.tar.gz"
sha256 "7c5733b6a80102d7efd3775d7119bc5de0dc3403138107f322c39a068216c063"
def install
bin.install "cirrus"
generate_completions_from_executable(bin/"cirrus", "completion")
end
end
end
if Hardware::CPU.arm?
if !Hardware::CPU.is_64_bit?
url "https://github.com/cirruslabs/cirrus-cli/releases/download/v0.135.0/cirrus-linux-arm.tar.gz"
sha256 "f35d344e87eceec538e90a492a871dcd4c7e0811cb3d7d8daf7b9e7f8df4900c"
def install
bin.install "cirrus"
generate_completions_from_executable(bin/"cirrus", "completion")
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/cirruslabs/cirrus-cli/releases/download/v0.135.0/cirrus-linux-arm64.tar.gz"
sha256 "36b8a4c86e7a13255c4a89f214cf267feb4286597e7b3797223947a1f9cd41f5"
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