Yleisradio / chtf

Terraform version switcher with automatic install
MIT License
21 stars 4 forks source link

Add better support for using without Homebrew #1

Closed tmatilai closed 4 years ago

tmatilai commented 4 years ago

Only try to use Homebrew if the yleisradio/terraforms tap is installed, and even then ask confirmation from the user before auto-installing. Auto-installation can be controlled with the CHTF_AUTO_INSTALL variable (yes/no/ask).

If Hombrew is not detected, the default location for installed Terraform versions is ~/.terraforms/terraform-<version>/terraform. The root directory can be configured with CHTF_TERRAFORM_DIR.