homebrew-core/Formula/vagrant-completion.rb
commitay 0348f401ae
vagrant-completion 2.2.0
Closes #33086.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2018-10-18 03:20:59 +08: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.2.0.tar.gz"
sha256 "cb1476683f0e8479334be20b26c49d516a0e1c739b9f6f35a8c05f68e4a048f1"
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