-
Notifications
You must be signed in to change notification settings - Fork 2
/
cloudquery@3.12.4.rb
71 lines (64 loc) · 3.03 KB
/
cloudquery@3.12.4.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 CloudqueryAT3124 < Formula
desc "Easily monitor and ask questions about your infrastructure."
homepage "https://cloudquery.io"
version "3.12.4"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v3.12.4/cloudquery_darwin_amd64.zip"
sha256 "5791a7dba241731d0735586543e34aad1a7759ec6cb4c705854a138cb5bba1fb"
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-v3.12.4/cloudquery_darwin_arm64.zip"
sha256 "b06d0c5dfb4f599f28b159f0592a358cf1988b804876865d2b5e8617eda4cc7e"
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.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v3.12.4/cloudquery_linux_arm64.zip"
sha256 "963dad2305d58ecddbcb89c28b44789f5fea1dceb48690796366b35af4de5a3c"
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.12.4/cloudquery_linux_amd64.zip"
sha256 "4760d730f97db2a6f1d13a8602091053a91e9df768195dfaf391af5108c64f12"
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