-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtopaz.rb
56 lines (48 loc) · 1.53 KB
/
topaz.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Topaz < Formula
desc "Topaz CLI"
homepage "https://www.topaz.sh/docs/"
version "0.32.47"
license "MIT"
on_macos do
on_intel do
url "https://github.com/aserto-dev/topaz/releases/download/v0.32.47/topaz_darwin_x86_64.zip", using: CurlDownloadStrategy
sha256 "104acc84dd77ba49d558b8dde289fb2efb093de28296c800529b75968d7c013f"
def install
bin.install "topaz"
end
end
on_arm do
url "https://github.com/aserto-dev/topaz/releases/download/v0.32.47/topaz_darwin_arm64.zip", using: CurlDownloadStrategy
sha256 "041deff23c4d1b8021c45b3f3b2b8dff0ae965f1ccd312856c7ab27d08999ff8"
def install
bin.install "topaz"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/aserto-dev/topaz/releases/download/v0.32.47/topaz_linux_x86_64.zip", using: CurlDownloadStrategy
sha256 "22146324ca0450c2f2ff793385f26fdae41cf6b384532f0f52817313822960f4"
def install
bin.install "topaz"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/aserto-dev/topaz/releases/download/v0.32.47/topaz_linux_arm64.zip", using: CurlDownloadStrategy
sha256 "5f9017ea9dcf8f66880a9747f5a5f79b12d7dd90d147b5210408f32053d6c0ec"
def install
bin.install "topaz"
end
end
end
end
test do
system "#{bin}/topaz version"
end
end