homebrew-core/Formula/vagrant-completion.rb
Igor Kapkov 4e08f4dc1b
vagrant-completion 2.2.4
Closes #37565.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-03-04 13:17:26 +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.4.tar.gz"
sha256 "4f8ce6ede5d47a2be1ce46a29d22d41d1f4ba9d99fe9496b2424f98ae4dab2d6"
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