-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoathkeeper.rb
66 lines (57 loc) · 1.94 KB
/
oathkeeper.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
57
58
59
60
61
62
63
64
65
66
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Oathkeeper < Formula
desc "The Ory Identity and Access Proxy (Ory Oathkeeper)"
homepage "https://www.ory.sh"
version "0.40.9"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/ory/oathkeeper/releases/download/v0.40.9/oathkeeper_0.40.9-macOS_sqlite_64bit.tar.gz"
sha256 "8cde10f1c15249e08a2212e00c540881e6afb413915952f7186fa06f4cd017fd"
def install
bin.install "oathkeeper"
end
end
if Hardware::CPU.arm?
url "https://github.com/ory/oathkeeper/releases/download/v0.40.9/oathkeeper_0.40.9-macOS_sqlite_arm64.tar.gz"
sha256 "f7ca67c1683e491c6af829f8aa14a52d48a7343b4ca4347f1df687b3a2be20fd"
def install
bin.install "oathkeeper"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/ory/oathkeeper/releases/download/v0.40.9/oathkeeper_0.40.9-linux_sqlite_64bit.tar.gz"
sha256 "6c51f79e63cc655d5f873b230fd32f78a058f68e53cc7f469e173f95e9f50e35"
def install
bin.install "oathkeeper"
end
end
end
if Hardware::CPU.arm?
if !Hardware::CPU.is_64_bit?
url "https://github.com/ory/oathkeeper/releases/download/v0.40.9/oathkeeper_0.40.9-linux_sqlite_armv6.tar.gz"
sha256 "04570758ad7b14da7d73224adf58cc56c1184e84895fe4c88f45cdab919e4085"
def install
bin.install "oathkeeper"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/ory/oathkeeper/releases/download/v0.40.9/oathkeeper_0.40.9-linux_sqlite_arm64.tar.gz"
sha256 "298afd31a9af54d89a0561635e5fddf1384422e8d5259ade1880f352cabe5762"
def install
bin.install "oathkeeper"
end
end
end
end
test do
system "#{bin}/oathkeeper version"
end
end