19 lines
558 B
Ruby
19 lines
558 B
Ruby
class VagrantCompletion < Formula
|
|
desc "Bash completion for Vagrant"
|
|
homepage "https://github.com/hashicorp/vagrant"
|
|
url "https://github.com/hashicorp/vagrant/archive/v2.1.2.tar.gz"
|
|
sha256 "610d704e737cbc0ccb9d27fd1b40be8bb1917cad693d2a3d841c8c36c8066939"
|
|
|
|
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
|