-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolicy.rb
56 lines (48 loc) · 1.49 KB
/
policy.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 Policy < Formula
desc "policy CLI for building and managing authorization policies"
homepage "https://opcr.io/"
version "0.3.0"
license "Apache License Version 2.0"
on_macos do
on_intel do
url "https://github.com/opcr-io/policy/releases/download/v0.3.0/policy0.3.0_darwin_x86_64.zip"
sha256 "5b5ce1de8a61b801bde954cd733e9f3001702278544959d0e3a596dae19a423c"
def install
bin.install "policy"
end
end
on_arm do
url "https://github.com/opcr-io/policy/releases/download/v0.3.0/policy0.3.0_darwin_arm64.zip"
sha256 "2bb9b296c9b08b738a91ddd9aa2815cc7b3d6547e0140addc4441bc6f384e5e5"
def install
bin.install "policy"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/opcr-io/policy/releases/download/v0.3.0/policy0.3.0_linux_x86_64.zip"
sha256 "2ce498ec7429fdc0ca188163035c8dfac85b53eb2024af4694adb8590557eb8c"
def install
bin.install "policy"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/opcr-io/policy/releases/download/v0.3.0/policy0.3.0_linux_arm64.zip"
sha256 "95a03bd11bdc3b9727125056f9f7b7de43925cae269fe017477d8e3bf5d195b4"
def install
bin.install "policy"
end
end
end
end
test do
system "#{bin}/policy version"
end
end