homebrew-core/Formula/tfenv.rb

30 lines
784 B
Ruby

class Tfenv < Formula
desc "Terraform version manager inspired by rbenv"
homepage "https://github.com/tfutils/tfenv"
url "https://github.com/tfutils/tfenv/archive/v2.2.2.tar.gz"
sha256 "ac7f74d8a0151e36a539ceae1460b320ec7b98b360dbd7799dc7cdbdf8c06ded"
license "MIT"
head "https://github.com/tfutils/tfenv.git"
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any_skip_relocation, all: "bbf7732d73d27dd91579c827b60a55674515a96e1755f2bbf842e78e01c9afc0"
end
uses_from_macos "unzip"
conflicts_with "terraform", because: "tfenv symlinks terraform binaries"
def install
prefix.install %w[bin lib libexec share]
end
test do
assert_match "0.10.0", shell_output("#{bin}/tfenv list-remote")
end
end