homebrew-core/Formula/vagrant-completion.rb
2018-09-01 19:14:40 +10:00

18 lines
557 B
Ruby

class VagrantCompletion < Formula
desc "Bash completion for Vagrant"
homepage "https://github.com/hashicorp/vagrant"
url "https://github.com/hashicorp/vagrant/archive/v2.1.4.tar.gz"
sha256 "ec3da78c4fde87736cabf622d1ea8088b5e7b1cbad0de306fe7941f8a4ef8f11"
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