23 lines
761 B
Ruby
23 lines
761 B
Ruby
class VagrantCompletion < Formula
|
|
desc "Bash completion for Vagrant"
|
|
homepage "https://github.com/hashicorp/vagrant"
|
|
url "https://github.com/hashicorp/vagrant/archive/v2.3.0.tar.gz"
|
|
sha256 "1931dbf29ec3c6622a649ae145fe706e5b957d7075870ce577358dd22c3d5dca"
|
|
license "MIT"
|
|
head "https://github.com/hashicorp/vagrant.git", branch: "main"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "b2487c069920ffff8017652613976561d60b1e29c6d7786d72c280ca3a4ad771"
|
|
end
|
|
|
|
def install
|
|
bash_completion.install "contrib/bash/completion.sh" => "vagrant"
|
|
zsh_completion.install "contrib/zsh/_vagrant"
|
|
end
|
|
|
|
test do
|
|
assert_match "-F _vagrant",
|
|
shell_output("bash -c 'source #{bash_completion}/vagrant && complete -p vagrant'")
|
|
end
|
|
end
|