-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathchainctl.rb
55 lines (47 loc) · 1.5 KB
/
chainctl.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 Chainctl < Formula
desc "CLI for the Chainguard Platform"
homepage "https://chainguard.dev"
version "0.2.50"
on_macos do
if Hardware::CPU.intel?
url "https://dl.enforce.dev/chainctl/0.2.50/chainctl_darwin_x86_64"
sha256 "c57472440fa1fed3d0f694fd27c55dc911765668965bf0002566abac905e56c8"
def install
bin.install "chainctl_darwin_x86_64" => "chainctl"
end
end
if Hardware::CPU.arm?
url "https://dl.enforce.dev/chainctl/0.2.50/chainctl_darwin_arm64"
sha256 "e4d219f3200291f004a8c347d96a504ad1224bf7caad014349bba16a7de75214"
def install
bin.install "chainctl_darwin_arm64" => "chainctl"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://dl.enforce.dev/chainctl/0.2.50/chainctl_linux_x86_64"
sha256 "eea6c9b0dbb88b439c780d129e223f2f1d8dc98f23ffb247ca54f8098997bef4"
def install
bin.install "chainctl_linux_x86_64" => "chainctl"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://dl.enforce.dev/chainctl/0.2.50/chainctl_linux_arm64"
sha256 "de2698eac3cccdec028d985464c8ebb69634329dacac2857fb389491c0fc82e9"
def install
bin.install "chainctl_linux_arm64" => "chainctl"
end
end
end
end
test do
system "#{bin}/chainctl", "version"
end
end