-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtfquery.rb
More file actions
54 lines (48 loc) · 1.97 KB
/
Copy pathtfquery.rb
File metadata and controls
54 lines (48 loc) · 1.97 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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Tfquery < Formula
desc "CLI to query Terraform/OpenTofu state across backends"
homepage "https://github.com/tfquery/tfquery"
version "1.8.0"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/tfquery/homebrew-tfquery/releases/download/v1.8.0/tfquery_1.8.0_darwin_x86_64.tar.gz"
sha256 "cc1c6542c26281513243674f33013e3cd7b89cfc9893805ef79a8d3addce451c"
define_method(:install) do
bin.install "tfquery"
man1.install Dir["docs/man/share/man1/*"] if File.directory?("docs/man/share/man1")
end
end
if Hardware::CPU.arm?
url "https://github.com/tfquery/homebrew-tfquery/releases/download/v1.8.0/tfquery_1.8.0_darwin_arm64.tar.gz"
sha256 "7948c0579de8c3af7a0f3dc89481eac50ff735448881c0133374a51eb80fe60f"
define_method(:install) do
bin.install "tfquery"
man1.install Dir["docs/man/share/man1/*"] if File.directory?("docs/man/share/man1")
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/tfquery/homebrew-tfquery/releases/download/v1.8.0/tfquery_1.8.0_linux_x86_64.tar.gz"
sha256 "7ca0d470f583f23d76586226ed822f4d563c0457878152276ac1255daf8743ed"
define_method(:install) do
bin.install "tfquery"
man1.install Dir["docs/man/share/man1/*"] if File.directory?("docs/man/share/man1")
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/tfquery/homebrew-tfquery/releases/download/v1.8.0/tfquery_1.8.0_linux_arm64.tar.gz"
sha256 "a2ddcfe151789efec5e08b4e5476a17ec6e017726090be6fb28d0285db72b2b4"
define_method(:install) do
bin.install "tfquery"
man1.install Dir["docs/man/share/man1/*"] if File.directory?("docs/man/share/man1")
end
end
end
test do
system "#{bin}/tfquery", "--version"
end
end