homebrew-core/Formula/vagrant-completion.rb

20 lines
574 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.14.tar.gz"
sha256 "bec6fb4458d3f65e0de81cf022f54b711b40e27fdcf23936d01e9150c932849b"
license "MIT"
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