mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -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.8.2'
|
|
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: 'defee79880898de86ea2dae8612f8a39d97bc5ab0bfe3c99773d3843f902e6de',
|
|
armv7l: 'defee79880898de86ea2dae8612f8a39d97bc5ab0bfe3c99773d3843f902e6de',
|
|
i686: 'b6cdf973c21e768c210102b8f65eb2717f082aced40e322574185f32d1918236',
|
|
x86_64: '3b5da3f4666bb77f9a0856bec2912e002e4c9937e22199c2dde358f0c1467888'
|
|
})
|
|
|
|
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
|