-
Notifications
You must be signed in to change notification settings - Fork 0
/
terraform-docs.rb
59 lines (50 loc) · 1.94 KB
/
terraform-docs.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class TerraformDocs < Formula
desc "Generate documentation from Terraform modules in various output formats"
homepage "https://github.com/terraform-docs/"
version "0.17.0"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/terraform-docs/terraform-docs/releases/download/v0.17.0/terraform-docs-v0.17.0-darwin-arm64.tar.gz"
sha256 "23d83eb036154a3de1a2af82e6f772b06bd6df08398208d43c8ca56f69d0456c"
def install
bin.install "terraform-docs"
end
end
if Hardware::CPU.intel?
url "https://github.com/terraform-docs/terraform-docs/releases/download/v0.17.0/terraform-docs-v0.17.0-darwin-amd64.tar.gz"
sha256 "846c0a40116f748aa900bb9abb704b34e40657d9f9acc807ab94b66355c0eb2e"
def install
bin.install "terraform-docs"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/terraform-docs/terraform-docs/releases/download/v0.17.0/terraform-docs-v0.17.0-linux-arm64.tar.gz"
sha256 "4189c4d0b418e5bcc642836b7f73e80d5d4d82b75ada73a7b78f923588d5f765"
def install
bin.install "terraform-docs"
end
end
if Hardware::CPU.intel?
url "https://github.com/terraform-docs/terraform-docs/releases/download/v0.17.0/terraform-docs-v0.17.0-linux-amd64.tar.gz"
sha256 "8e436d0c44db49c2ccd95deede05c3deba324b34a274be06cd9ba9cdf644e795"
def install
bin.install "terraform-docs"
end
end
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/terraform-docs/terraform-docs/releases/download/v0.17.0/terraform-docs-v0.17.0-linux-arm.tar.gz"
sha256 "9457a700d99601f2c50bfe9613e6ff3b6e87d0df5ed0620c0b103de26ae66e09"
def install
bin.install "terraform-docs"
end
end
end
test do
system "#{bin}/terraform-docs version"
end
end