-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathketo.rb
60 lines (51 loc) · 1.82 KB
/
keto.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Keto < Formula
desc "The Ory Authorization Server (Ory Keto)"
homepage "https://www.ory.sh"
version "0.12.0-alpha.0"
license "Apache-2.0"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/ory/keto/releases/download/v0.12.0-alpha.0/keto_0.12.0-alpha.0-macOS_sqlite_arm64.tar.gz"
sha256 "ab41a0ab025448a3301e454b05510cdb13b467d443fe0ede2c725b4fa460b1db"
def install
bin.install "keto"
end
end
if Hardware::CPU.intel?
url "https://github.com/ory/keto/releases/download/v0.12.0-alpha.0/keto_0.12.0-alpha.0-macOS_sqlite_64bit.tar.gz"
sha256 "335e9f154f40df686bc10bf4c174873f37eec2b17fbb6104a144d71c2a8530ce"
def install
bin.install "keto"
end
end
end
on_linux do
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/ory/keto/releases/download/v0.12.0-alpha.0/keto_0.12.0-alpha.0-linux_sqlite_armv6.tar.gz"
sha256 "2782941e48a96176d34658d515fbbb0b48bc4b325c05c4c4802126996520278d"
def install
bin.install "keto"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/ory/keto/releases/download/v0.12.0-alpha.0/keto_0.12.0-alpha.0-linux_sqlite_arm64.tar.gz"
sha256 "5864431901fb58c4e23fdbe98c1b6ef481dbb3db90227a7cc6afc894b24155aa"
def install
bin.install "keto"
end
end
if Hardware::CPU.intel?
url "https://github.com/ory/keto/releases/download/v0.12.0-alpha.0/keto_0.12.0-alpha.0-linux_sqlite_64bit.tar.gz"
sha256 "2a0d957cbc0e7677f73dcd428cf2bda6a0ea74efb749fcfb6f7549ea8419511b"
def install
bin.install "keto"
end
end
end
test do
system "#{bin}/keto version"
end
end