class Goenv < Formula desc "Go version management" homepage "https://github.com/syndbg/goenv" url "https://github.com/syndbg/goenv/archive/v20161215.tar.gz" sha256 "b2fb6b0dc2a359caa628e7ceee3e5c46205d41bb185d461a1c591bd119f84286" head "https://github.com/syndbg/goenv.git" bottle :unneeded def install inreplace "libexec/goenv", "/usr/local", HOMEBREW_PREFIX prefix.install Dir["*"] %w[goenv-install goenv-uninstall go-build].each do |cmd| bin.install_symlink "#{prefix}/plugins/go-build/bin/#{cmd}" end end test do assert_match "Usage: goenv []", shell_output("#{bin}/goenv help") end end