-
Notifications
You must be signed in to change notification settings - Fork 0
/
capact.rb
52 lines (44 loc) · 1.64 KB
/
capact.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Capact < Formula
desc "Capact CLI is a command-line tool, which manages Capact resources."
homepage "https://github.com/capactio/homebrew-tap"
version "0.6.0"
license "Apache License 2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/capactio/capact/releases/download/v0.6.0/capact-darwin-amd64"
sha256 "3933ff3deb2e6fb677982449ed70053bc30c9e950e7251fde7a0e34b4c4fba85"
def install
bin.install "capact-darwin-amd64" => "capact"
end
end
if Hardware::CPU.arm?
url "https://github.com/capactio/capact/releases/download/v0.6.0/capact-darwin-arm64"
sha256 "6541c3f628f662e7e7dcba1538f236f5ad8b4b8053fb553ac6c69d63fdd41eb5"
def install
bin.install "capact-darwin-arm64" => "capact"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/capactio/capact/releases/download/v0.6.0/capact-linux-arm64"
sha256 "a961d25b879e1d331e3ce7300d7a87cd68ffbdabb9d9d349c2d70e9eb4bbc636"
def install
bin.install "capact-linux-arm64" => "capact"
end
end
if Hardware::CPU.intel?
url "https://github.com/capactio/capact/releases/download/v0.6.0/capact-linux-amd64"
sha256 "ee86ba0e60ff096b906479d9e79ca18db880bb67b38c7f5dddca80706dd15dba"
def install
bin.install "capact-linux-amd64" => "capact"
end
end
end
test do
system "#{bin}/capact version"
end
end