-
Notifications
You must be signed in to change notification settings - Fork 2
/
cloudquery@3.23.0.rb
71 lines (64 loc) · 3.03 KB
/
cloudquery@3.23.0.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 CloudqueryAT3230 < Formula
desc "Easily monitor and ask questions about your infrastructure."
homepage "https://cloudquery.io"
version "3.23.0"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/cloudquery/cloudquery/releases/download/cli-v3.23.0/cloudquery_darwin_arm64.zip"
sha256 "20eb5ea2a69f0c18a1805200b32fffae9f1a700685bba683dcbb1d05843be4eb"
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.23.0/cloudquery_darwin_amd64.zip"
sha256 "1064f25479148472bd7894fc655e9b9e74acbe7ff23ec2fe7ed8ee2f505b76e8"
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.23.0/cloudquery_linux_amd64.zip"
sha256 "8a5e603c32e48bdf42060879a6c37e7625b899d8ad45ef6c6f628a54bd7f8b7e"
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.23.0/cloudquery_linux_arm64.zip"
sha256 "fcc8368801f40f2b3a36879c5cf29657e4e3054e60f1febcefc9924fba8278c2"
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