-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtf.rb
48 lines (41 loc) · 1.37 KB
/
tf.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Tf < Formula
desc "Terraform version wrapper"
homepage "https://github.com/jacobwgillespie/tf"
version "1.0.0"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/jacobwgillespie/tf/releases/download/v1.0.0/tf_1.0.0_darwin_arm64.tar.gz"
sha256 "5d47e2bf13bf734a6a7bda0c3a1ea6563063b7eb0fcdc991243be9b0c436962d"
def install
bin.install "tf"
end
end
if Hardware::CPU.intel?
url "https://github.com/jacobwgillespie/tf/releases/download/v1.0.0/tf_1.0.0_darwin_amd64.tar.gz"
sha256 "74c09e3de6c88d24be9d02fabf656b8d1e9d44c6c4b1bc2c8d979f72d352cfcf"
def install
bin.install "tf"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/jacobwgillespie/tf/releases/download/v1.0.0/tf_1.0.0_linux_amd64.tar.gz"
sha256 "150ced29bfa25dfa9a4786aea134ac668a7b7e3c4eed7b3c0f7f38524ff4fb4a"
def install
bin.install "tf"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/jacobwgillespie/tf/releases/download/v1.0.0/tf_1.0.0_linux_arm64.tar.gz"
sha256 "276ee91c32c842626ba308fa346f7bd382b514c2d2e190527dd38ef956d6b08f"
def install
bin.install "tf"
end
end
end
end