19 lines
558 B
Ruby
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.3.tar.gz"
|
|
sha256 "4b141f60e7e59e654b9a77eb137f208613349db331cdbfcd9a8354b8ebba5c00"
|
|
|
|
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
|