homebrew-core/Formula/vagrant-completion.rb
2017-05-15 23:26:52 -07:00

19 lines
558 B
Ruby

class VagrantCompletion < Formula
desc "Bash completion for Vagrant"
homepage "https://github.com/mitchellh/vagrant"
url "https://github.com/mitchellh/vagrant/archive/v1.9.5.tar.gz"
sha256 "69eb8ede3148b6f94389be5fd2d6cb2b6c79ba78cbcacdc354d2c73f12eccc2a"
head "https://github.com/mitchellh/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