class VagrantCompletion < Formula desc "Bash completion for Vagrant" homepage "https://github.com/mitchellh/vagrant" url "https://github.com/mitchellh/vagrant/archive/v1.9.7.tar.gz" sha256 "194de72442a2d08f6e04fbed8698a99d190a0e7203d35b49e80d4ddfcb71fb1b" head "https://github.com/mitchellh/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