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/v2.0.0.tar.gz"
|
|
sha256 "c25d3a5f18abdf349047f4d80bb74e6cb526959536e4bef5aa771de9d39cb260"
|
|
|
|
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
|