-
Notifications
You must be signed in to change notification settings - Fork 2
/
camelot.rb
51 lines (43 loc) · 1.47 KB
/
camelot.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Camelot < Formula
desc "Publish the release."
homepage "https://github.com/chanzuckerberg/camelot"
version "0.22.0"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/chanzuckerberg/camelot/releases/download/v0.22.0/camelot_0.22.0_darwin_arm64.tar.gz"
sha256 "76f75dd67a86ad3cb1f44b4108f681ae154c4ea6ac9a9c5da98f0cfe201d928d"
def install
bin.install "camelot"
end
end
if Hardware::CPU.intel?
url "https://github.com/chanzuckerberg/camelot/releases/download/v0.22.0/camelot_0.22.0_darwin_amd64.tar.gz"
sha256 "ba73735921789ccd5b6a1fa7dd4918090bdfeadfbe472c4df8de6d4b0aae7965"
def install
bin.install "camelot"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/chanzuckerberg/camelot/releases/download/v0.22.0/camelot_0.22.0_linux_arm64.tar.gz"
sha256 "1cd16292c519a4beff8648be2c8821b8547e5459948819875d651bedfe3823c8"
def install
bin.install "camelot"
end
end
if Hardware::CPU.intel?
url "https://github.com/chanzuckerberg/camelot/releases/download/v0.22.0/camelot_0.22.0_linux_amd64.tar.gz"
sha256 "66b2916014a7304fd0e48c221ceef6a56dbc23f96b0e83405359db6c5b2500c1"
def install
bin.install "camelot"
end
end
end
test do
system "#{bin}/camelot version"
end
end