mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
31 lines
1.4 KiB
Ruby
31 lines
1.4 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.9.0'
|
|
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: '972b034014005ec2c9d707aff7310b059353b92dea785bd8b493b42c28d8c9b0',
|
|
armv7l: '972b034014005ec2c9d707aff7310b059353b92dea785bd8b493b42c28d8c9b0',
|
|
i686: '37a415a1ea08733281da9d5d2db350242f01d6133296ee5b8f08105ecae0c5f8',
|
|
x86_64: '45917b05302aa843b46037a38eee31feeb350ee443680f04cc203f547c390783'
|
|
})
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.install 'terraform', "#{CREW_DEST_PREFIX}/bin/terraform", mode: 0o755
|
|
end
|
|
|
|
def self.postinstall
|
|
puts "\nType 'terraform' to get started.\n".lightblue
|
|
end
|
|
end
|