18 lines
557 B
Ruby
18 lines
557 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.5.tar.gz"
|
|
sha256 "0a228f5185b24b72efcc5a3924f86fa9fabab6f7562c3c63c1d9d239aa72a7b1"
|
|
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
|