Files
chromebrew/packages/terraform.rb
2026-03-26 03:54:36 +00:00

32 lines
1.3 KiB
Ruby

require 'package'
class Terraform < Package
description 'Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.'
homepage 'https://www.terraform.io/'
version '1.14.8'
license 'Apache-2.0, BSD-2, BSD-4, ECL-2.0, imagemagick, ISC, JSON, MIT, MIT-with-advertising, MPL-2.0 and unicode'
compatibility 'all'
source_url({
aarch64: "https://releases.hashicorp.com/terraform/#{version}/terraform_#{version}_linux_arm.zip",
armv7l: "https://releases.hashicorp.com/terraform/#{version}/terraform_#{version}_linux_arm.zip",
i686: "https://releases.hashicorp.com/terraform/#{version}/terraform_#{version}_linux_386.zip",
x86_64: "https://releases.hashicorp.com/terraform/#{version}/terraform_#{version}_linux_amd64.zip"
})
source_sha256({
aarch64: '4bed85ecc7f3d73826920ac5b57c02efeb04fa3b72f16d0b01921a94fd7252dc',
armv7l: '4bed85ecc7f3d73826920ac5b57c02efeb04fa3b72f16d0b01921a94fd7252dc',
i686: '38b3ca568f5a9d30e7330ca88d088eebe71fb13888ad38f6e00e99985b559452',
x86_64: '56a5d12f47cbc1c6bedb8f5426ae7d5df984d1929572c24b56f4c82e9f9bf709'
})
no_compile_needed
def self.install
FileUtils.install 'terraform', "#{CREW_DEST_PREFIX}/bin/terraform", mode: 0o755
end
def self.postinstall
puts "\nType 'terraform' to get started.\n".lightblue
end
end