-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathopenapi-oathkeeper.rb
56 lines (48 loc) · 1.81 KB
/
openapi-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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class OpenapiOathkeeper < Formula
desc "This project aims to automating the generation of Ory Oathkeeper rules from an OpenAPI 3 contract and save a lot of time and effort, especially for larger projects with many endpoints or many services."
homepage "https://github.com/cerberauth/openapi-oathkeeper"
version "0.7.10"
license "MIT"
on_macos do
on_intel do
url "https://github.com/cerberauth/openapi-oathkeeper/releases/download/v0.7.10/openapi-oathkeeper_Darwin_x86_64.tar.gz"
sha256 "88104b3cf922ec869dfa893927f024d0fc20378bd8466d4244e4dc4844fa4de1"
def install
bin.install "openapi-oathkeeper"
end
end
on_arm do
url "https://github.com/cerberauth/openapi-oathkeeper/releases/download/v0.7.10/openapi-oathkeeper_Darwin_arm64.tar.gz"
sha256 "e4d8766b7a9483d6b83db52dc5c0a33e51339a267f5641a82d17f3b7b76d9971"
def install
bin.install "openapi-oathkeeper"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/cerberauth/openapi-oathkeeper/releases/download/v0.7.10/openapi-oathkeeper_Linux_x86_64.tar.gz"
sha256 "776603416596d180407807d26c9db5771f07664b153053f37e9461cedd1e4932"
def install
bin.install "openapi-oathkeeper"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/cerberauth/openapi-oathkeeper/releases/download/v0.7.10/openapi-oathkeeper_Linux_arm64.tar.gz"
sha256 "e06c0117241483c5c7b7a670725b9d776270080a68d3cf3d628e9eb59a724d69"
def install
bin.install "openapi-oathkeeper"
end
end
end
end
test do
system "#{bin}/openapi-oathkeeper help"
end
end