-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaserto.rb
56 lines (48 loc) · 1.55 KB
/
aserto.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 Aserto < Formula
desc "Aserto CLI"
homepage "https://docs.aserto.com/"
version "0.32.46"
license "MIT"
on_macos do
on_intel do
url "https://github.com/aserto-dev/aserto/releases/download/v0.32.46/aserto_darwin_x86_64.zip", using: CurlDownloadStrategy
sha256 "0ec6d278c547413c98785a6bb63111b9a8079c9919e2be639911156f94c1705a"
def install
bin.install "aserto"
end
end
on_arm do
url "https://github.com/aserto-dev/aserto/releases/download/v0.32.46/aserto_darwin_arm64.zip", using: CurlDownloadStrategy
sha256 "22758a5555d83269c77f1ae295c464bd6f29b7f0de2e9aa0ee6b190318ee5954"
def install
bin.install "aserto"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/aserto-dev/aserto/releases/download/v0.32.46/aserto_linux_x86_64.zip", using: CurlDownloadStrategy
sha256 "8bd8025c47ef72bbb3dbd372a59760898c922970eeab55b484e1faebc791592f"
def install
bin.install "aserto"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/aserto-dev/aserto/releases/download/v0.32.46/aserto_linux_arm64.zip", using: CurlDownloadStrategy
sha256 "57d18b1fe41ed2c2675cabe31dab5306a0402b9638b528145336277b3eb7f5e1"
def install
bin.install "aserto"
end
end
end
end
test do
system "#{bin}/aserto version"
end
end