homebrew-core/Formula/vagrant-completion.rb
2017-04-25 11:53:02 -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.4.tar.gz"
sha256 "23358ad5d1a37d3d856709da55d8696c6eef30fcf88abd27ffe4b8441cfada7f"
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