-
Notifications
You must be signed in to change notification settings - Fork 3
/
auth0.rb
70 lines (58 loc) · 2.37 KB
/
auth0.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
67
68
69
70
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Auth0 < Formula
desc "Build, manage and test your Auth0 integrations from the command line"
homepage "https://auth0.github.io/auth0-cli"
version "1.7.2"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/auth0/auth0-cli/releases/download/v1.7.2/auth0-cli_1.7.2_Darwin_arm64.tar.gz"
sha256 "296c19acc11f715de55c2fd095b95fbed607c99ef7ad183612fbb572d0b2ff1a"
def install
bin.install "auth0"
(bash_completion/"auth0").write `#{bin}/auth0 completion bash`
(fish_completion/"auth0.fish").write `#{bin}/auth0 completion fish`
(zsh_completion/"_auth0").write `#{bin}/auth0 completion zsh`
end
end
if Hardware::CPU.intel?
url "https://github.com/auth0/auth0-cli/releases/download/v1.7.2/auth0-cli_1.7.2_Darwin_x86_64.tar.gz"
sha256 "c41271a6d7d487141c63456cf3f32d71480b9770f21b083c7bf2fae59310f1db"
def install
bin.install "auth0"
(bash_completion/"auth0").write `#{bin}/auth0 completion bash`
(fish_completion/"auth0.fish").write `#{bin}/auth0 completion fish`
(zsh_completion/"_auth0").write `#{bin}/auth0 completion zsh`
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/auth0/auth0-cli/releases/download/v1.7.2/auth0-cli_1.7.2_Linux_arm64.tar.gz"
sha256 "6be97cd0a9e72752a5b9846f69504f8fc81a10da2beab0ad77b094b028ae7c71"
def install
bin.install "auth0"
(bash_completion/"auth0").write `#{bin}/auth0 completion bash`
(fish_completion/"auth0.fish").write `#{bin}/auth0 completion fish`
(zsh_completion/"_auth0").write `#{bin}/auth0 completion zsh`
end
end
if Hardware::CPU.intel?
url "https://github.com/auth0/auth0-cli/releases/download/v1.7.2/auth0-cli_1.7.2_Linux_x86_64.tar.gz"
sha256 "eba45ac5dca57aa2535f41ff1da1dda55c69c4ea1aff089502efaa86ec7d45fd"
def install
bin.install "auth0"
(bash_completion/"auth0").write `#{bin}/auth0 completion bash`
(fish_completion/"auth0.fish").write `#{bin}/auth0 completion fish`
(zsh_completion/"_auth0").write `#{bin}/auth0 completion zsh`
end
end
end
def caveats
<<~EOS
Thanks for installing the Auth0 CLI
EOS
end
end