-
Notifications
You must be signed in to change notification settings - Fork 2
/
cloudquery@3.17.1.rb
71 lines (64 loc) · 3.03 KB
/
cloudquery@3.17.1.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class CloudqueryAT3171 < Formula
desc "Easily monitor and ask questions about your infrastructure."
homepage "https://cloudquery.io"
version "3.17.1"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v3.17.1/cloudquery_darwin_arm64.zip"
sha256 "fd507f6021e988965abad999e3eab0381e0728b7573cdc9895bf5213c52ef8aa"
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.intel?
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v3.17.1/cloudquery_darwin_amd64.zip"
sha256 "7f2635b2fb4fc072c4d31db5eede93655fecf0eabe93324cef8bdde5c6a2f413"
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-v3.17.1/cloudquery_linux_amd64.zip"
sha256 "a7b553a7f7754a791e4151959e9178d54f028eec5279661a448c2519d97c932d"
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-v3.17.1/cloudquery_linux_arm64.zip"
sha256 "efbeef51cd4964a767634b50da7073e9ee77e28b220a9c399a5cae5c769e7534"
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