homebrew-core/Formula/tfenv.rb

30 lines
802 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.3.tar.gz"
sha256 "0b42330aeed675ad3e5dd6063dbd1daabecb36180e515cca1c6e105dd7a1fa49"
license "MIT"
head "https://github.com/tfutils/tfenv.git", branch: "master"
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any_skip_relocation, all: "d58555c2a79b2425a495e4bcdf48297067578c42c863493845030ed8f51e8d53"
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