-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterraform-docs.rb
65 lines (56 loc) · 1.99 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
60
61
62
63
64
65
# 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.19.0"
on_macos do
on_intel do
url "https://github.com/terraform-docs/terraform-docs/releases/download/v0.19.0/terraform-docs-v0.19.0-darwin-amd64.tar.gz"
sha256 "fc3fa55037e35f1b76d1c7e84ed5a8b412ea6aed8264df050e1f692fad1dae29"
def install
bin.install "terraform-docs"
end
end
on_arm do
url "https://github.com/terraform-docs/terraform-docs/releases/download/v0.19.0/terraform-docs-v0.19.0-darwin-arm64.tar.gz"
sha256 "c4e8d863571b8d5102089a22500426a18094855040eb07e4b83e4dfd1816dd23"
def install
bin.install "terraform-docs"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/terraform-docs/terraform-docs/releases/download/v0.19.0/terraform-docs-v0.19.0-linux-amd64.tar.gz"
sha256 "dd741a0ece81059a478684b414d95d72b8b74fa58f50ac4036b4e8b56130d64b"
def install
bin.install "terraform-docs"
end
end
end
on_arm do
if !Hardware::CPU.is_64_bit?
url "https://github.com/terraform-docs/terraform-docs/releases/download/v0.19.0/terraform-docs-v0.19.0-linux-arm.tar.gz"
sha256 "48b7f7fc6a1ce70c5896f661df384598a5805b490af492ce03a0265d67bea826"
def install
bin.install "terraform-docs"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/terraform-docs/terraform-docs/releases/download/v0.19.0/terraform-docs-v0.19.0-linux-arm64.tar.gz"
sha256 "ebda7dda3a1f678e9e3ef2f091c97b43f34a5a1b52fb9b1d3f44a003f481e8b5"
def install
bin.install "terraform-docs"
end
end
end
end
test do
system "#{bin}/terraform-docs version"
end
end