homebrew-core/Formula/tfenv.rb

20 lines
532 B
Ruby

class Tfenv < Formula
desc "Terraform version manager inspired by rbenv"
homepage "https://github.com/kamatama41/tfenv"
url "https://github.com/kamatama41/tfenv/archive/v0.6.0.tar.gz"
sha256 "f2ca32ade0e90d6988106e85efaa548ed116cac1ded24f88dd19f479c6381e2e"
head "https://github.com/kamatama41/tfenv.git"
bottle :unneeded
conflicts_with "terraform", :because => "tfenv symlinks terraform binaries"
def install
prefix.install ["bin", "libexec"]
end
test do
system bin/"tfenv", "list-remote"
end
end