homebrew-core/Formula/vagrant-completion.rb

19 lines
558 B
Ruby

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