# terraform
class Terraform < FPM::Cookery::Recipe
  description 'Terraform is a tool for building, changing, and versioning'\
  ' infrastructure safely and efficiently. Terraform can manage existing and'\
  ' popular service providers as well as custom in-house solutions.'

  name 'terraform'
  version '0.11.7'
  source "https://releases.hashicorp.com/terraform/#{version}/terraform"\
  "_#{version}_linux_amd64.zip"

  homepage 'https://www.terraform.io/'

  def build
    safesystem "strip -s #{name}"
  end

  def install
    bin.install name
    etc('profile.d').install workdir("#{name}.sh")
  end
end
