-
Notifications
You must be signed in to change notification settings - Fork 2
/
cloudquery.rb
75 lines (68 loc) · 3.08 KB
/
cloudquery.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
71
72
73
74
75
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Cloudquery < Formula
desc "Easily monitor and ask questions about your infrastructure."
homepage "https://cloudquery.io"
version "6.12.9"
on_macos do
on_intel do
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v6.12.9/cloudquery_darwin_amd64.zip"
sha256 "cf61526a8bbbe845dd557b639a8b20283d81fdca9cf2ecb84c31c76ebe76ec0e"
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
on_arm do
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v6.12.9/cloudquery_darwin_arm64.zip"
sha256 "cba800c5528be2f9b836643c9a7f830901793740d374b8b8db9c2149fe6710da"
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
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v6.12.9/cloudquery_linux_amd64.zip"
sha256 "e3c6fd7b29b01b4187e9ef8fd7fbc77dac368b8a2387f667fc1a19e71f21e6ff"
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_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v6.12.9/cloudquery_linux_arm64.zip"
sha256 "1ec6f17f2cd54a97e9ea10cf47e66857180d6f74f9e7f65138c81d0541a91506"
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
end