class VagrantCompletion < Formula desc "Bash completion for Vagrant" homepage "https://github.com/hashicorp/vagrant" url "https://github.com/hashicorp/vagrant/archive/v2.2.6.tar.gz" sha256 "1bdafbce594cb17b9b4a7d85ba3dc35093d6693b1717280e062ec64ca2c05a5b" head "https://github.com/hashicorp/vagrant.git" bottle :unneeded def install bash_completion.install "contrib/bash/completion.sh" => "vagrant" end test do assert_match "-F _vagrant", shell_output("source #{bash_completion}/vagrant && complete -p vagrant") end end