homebrew-core/Formula/vagrant-completion.rb
Igor Kapkov 756559e7d9
vagrant-completion 2.2.3
Closes #35857.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-01-10 14:03:56 +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.3.tar.gz"
sha256 "7a2f15b58549080562168f6bcab6d1461540b42ad35bf1f0d33f2c64317d00c8"
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