mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Terraform 0.13.4 => 1.1.0 (#6469)
This commit is contained in:
@@ -3,23 +3,28 @@ 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 '0.13.4'
|
||||
version '1.1.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'
|
||||
|
||||
case ARCH
|
||||
when 'x86_64'
|
||||
source_url "https://releases.hashicorp.com/terraform/#{self.version}/terraform_#{self.version}_linux_amd64.zip"
|
||||
source_sha256 'a92df4a151d390144040de5d18351301e597d3fae3679a814ea57554f6aa9b24'
|
||||
when 'aarch64', 'armv7l'
|
||||
source_url "https://releases.hashicorp.com/terraform/#{self.version}/terraform_#{self.version}_linux_arm.zip"
|
||||
source_sha256 '28f90802515d2ef8468eafbe4b0125fe812ab383d7707429adb2c8f9ff8aab7d'
|
||||
when 'i686'
|
||||
source_url 'https://releases.hashicorp.com/terraform/#{self.version}/terraform_#{self.version}_linux_386.zip'
|
||||
source_sha256 '16225f17149505a42751599acd8e12d01690324f680e7fa2099afed581876916'
|
||||
end
|
||||
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: '28f90802515d2ef8468eafbe4b0125fe812ab383d7707429adb2c8f9ff8aab7d',
|
||||
armv7l: '28f90802515d2ef8468eafbe4b0125fe812ab383d7707429adb2c8f9ff8aab7d',
|
||||
i686: '16225f17149505a42751599acd8e12d01690324f680e7fa2099afed581876916',
|
||||
x86_64: 'a92df4a151d390144040de5d18351301e597d3fae3679a814ea57554f6aa9b24',
|
||||
})
|
||||
|
||||
def self.install
|
||||
system "install -Dm755 terraform #{CREW_DEST_PREFIX}/bin/terraform"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user