-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (64 loc) · 3.03 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
67
68
69
70
71
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class CloudqueryAT237 < Formula
desc "Easily monitor and ask questions about your infrastructure."
homepage "https://cloudquery.io"
version "2.3.7"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v2.3.7/cloudquery_darwin_amd64.zip"
sha256 "1e6ecb6705b3553e9e41868fe68d870ee5642211c644bc6546ed1de6cc44d54f"
def install
bin.install "cloudquery"
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "bash")
(bash_completion/"cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "zsh")
(zsh_completion/"_cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "fish")
(fish_completion/"cloudquery.fish").write output
end
end
if Hardware::CPU.arm?
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v2.3.7/cloudquery_darwin_arm64.zip"
sha256 "f34074af0516f7969e85b9dd65b065cd2ea05a410a7daea4cb0e52fcd3532e5f"
def install
bin.install "cloudquery"
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "bash")
(bash_completion/"cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "zsh")
(zsh_completion/"_cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "fish")
(fish_completion/"cloudquery.fish").write output
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v2.3.7/cloudquery_linux_amd64.zip"
sha256 "44d10be9dda642bba08cf19f51ddeb3becbf619ddfd93d8b6f034862cd40de2c"
def install
bin.install "cloudquery"
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "bash")
(bash_completion/"cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "zsh")
(zsh_completion/"_cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "fish")
(fish_completion/"cloudquery.fish").write output
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v2.3.7/cloudquery_linux_arm64.zip"
sha256 "e24baed3c0ccb7f88b73bf6b9b8e03576f8a0d2817b469f7614fb43a164ee6f2"
def install
bin.install "cloudquery"
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "bash")
(bash_completion/"cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "zsh")
(zsh_completion/"_cloudquery").write output
output = Utils.safe_popen_read("#{bin}/cloudquery", "completion", "fish")
(fish_completion/"cloudquery.fish").write output
end
end
end
end