-
Notifications
You must be signed in to change notification settings - Fork 7
/
chainctl.rb
55 lines (47 loc) · 1.45 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.10"
on_macos do
on_intel do
url "https://dl.enforce.dev/chainctl/0.2.10/chainctl_darwin_x86_64"
sha256 "200a38466adb2de06c33f4c65dea3a6d2ce7f4a1e09667303c20d570393a4c44"
def install
bin.install "chainctl_darwin_x86_64" => "chainctl"
end
end
on_arm do
url "https://dl.enforce.dev/chainctl/0.2.10/chainctl_darwin_arm64"
sha256 "6706034cd38cb0186c0dda8157d7423eb8552489a2f5193c9bd505d48480b424"
def install
bin.install "chainctl_darwin_arm64" => "chainctl"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://dl.enforce.dev/chainctl/0.2.10/chainctl_linux_x86_64"
sha256 "919da7c11f6f885a863a4e6cd4ebab8d58eeea4fc2c631f4842608a9f8a45d32"
def install
bin.install "chainctl_linux_x86_64" => "chainctl"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://dl.enforce.dev/chainctl/0.2.10/chainctl_linux_arm64"
sha256 "f8d2fe14e2e778ce19a286a434f1038c674c3a98b07d5d2fe3c463e9e00ce60a"
def install
bin.install "chainctl_linux_arm64" => "chainctl"
end
end
end
end
test do
system "#{bin}/chainctl", "version"
end
end