-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli.rb
More file actions
66 lines (57 loc) · 1.79 KB
/
cli.rb
File metadata and controls
66 lines (57 loc) · 1.79 KB
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 Cli < Formula
desc "Use Ory from your terminal!"
homepage "https://www.ory.sh"
version "1.2.0"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/ory/cli/releases/download/v1.2.0/ory_1.2.0-macOS_sqlite_64bit.tar.gz"
sha256 "3d5e5b09b9a816355162bb8415db3f773e9e2ebe1247ee5225ceab86a388454a"
def install
bin.install "ory"
end
end
if Hardware::CPU.arm?
url "https://github.com/ory/cli/releases/download/v1.2.0/ory_1.2.0-macOS_sqlite_arm64.tar.gz"
sha256 "11df2fd91cb4e76a2bed25614a1d54ad7b0e50650ba41095929dbfea69b8e728"
def install
bin.install "ory"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/ory/cli/releases/download/v1.2.0/ory_1.2.0-linux_sqlite_64bit.tar.gz"
sha256 "517d852485148da7168204e2b1cfd03ea3d91cc24877b2e5edc7857d77a45730"
def install
bin.install "ory"
end
end
end
if Hardware::CPU.arm?
if !Hardware::CPU.is_64_bit?
url "https://github.com/ory/cli/releases/download/v1.2.0/ory_1.2.0-linux_sqlite_armv6.tar.gz"
sha256 "0766bc75fe4a8f0d22d16254cc2397f0f01c35595467fa290de009b1b8f55d51"
def install
bin.install "ory"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/ory/cli/releases/download/v1.2.0/ory_1.2.0-linux_sqlite_arm64.tar.gz"
sha256 "e618a3777cc4aec97bf239f226fcf91eadb451192beba7c0ddb712772ae4bfce"
def install
bin.install "ory"
end
end
end
end
test do
system "#{bin}/ory version"
end
end