-
Notifications
You must be signed in to change notification settings - Fork 1
/
topaz.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.41"
license "MIT"
on_macos do
on_intel do
url "https://github.com/aserto-dev/topaz/releases/download/v0.32.41/topaz_darwin_x86_64.zip", using: CurlDownloadStrategy
sha256 "e08690673bdac38b6538dbe85671c59dd9b1e368a7d33df3303ce8adba3599fc"
def install
bin.install "topaz"
end
end
on_arm do
url "https://github.com/aserto-dev/topaz/releases/download/v0.32.41/topaz_darwin_arm64.zip", using: CurlDownloadStrategy
sha256 "b2ff53051ee046d0b15c74955cdb6209aa734435a455eb1ab2ec8f3e7ed8a987"
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.41/topaz_linux_x86_64.zip", using: CurlDownloadStrategy
sha256 "7557acc4b68267ef94fbe3cd2553e2e0dbbfc32de9a90212ed1bdc4f66315d3f"
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.41/topaz_linux_arm64.zip", using: CurlDownloadStrategy
sha256 "525273bb8dc84bf13324b2850ff644bb88d2fa793195b398399bebcdaa28d29d"
def install
bin.install "topaz"
end
end
end
end
test do
system "#{bin}/topaz version"
end
end