Skip to content

Commit

Permalink
Brew formula update for terraform-switcher version 0.2.168
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensbox committed May 24, 2018
1 parent ea3670a commit a37e940
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Formula/tfswitch.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
class Tfswitch < Formula
desc "The tfswitch command lets you switch between terraform versions."
homepage "https://warren-veerasingam.github.io/terraform-switcher/"
url "https://github.com/warren-veerasingam/terraform-switcher/archive/0.2.168.tar.gz"
head "https://github.com/warren-veerasingam/terraform-switcher.git"
version "0.2.168"
sha256 "5eb2de36846e031817f90bfdb89f2b522423636dd3e24dbd618e11761483ff4c"

depends_on "git"
depends_on "make" => :build
depends_on "gcc" => :build

conflicts_with "terraform"

def install
bin.install "tfswitch"
end

def caveats; <<~EOS
Type 'tfswitch' on your command line and choose the terraform version that you want from the dropdown. This command currently only works on MacOs and Linux
EOS
end

test do
system "#{bin}/tfswitch --version"
end
end

0 comments on commit a37e940

Please sign in to comment.