24 lines
797 B
Ruby
24 lines
797 B
Ruby
class DockerCompletion < Formula
|
|
desc "Bash, Zsh and Fish completion for Docker"
|
|
homepage "https://github.com/docker/docker"
|
|
url "https://github.com/docker/docker/archive/v17.04.0-ce.tar.gz"
|
|
version "17.04.0"
|
|
sha256 "b6ee0aa93ecea44e956d3627907e10557b3ec37d13ddfb40e436656e5037c640"
|
|
head "https://github.com/docker/docker"
|
|
|
|
bottle :unneeded
|
|
|
|
conflicts_with "docker",
|
|
:because => "docker already includes these completion scripts"
|
|
|
|
def install
|
|
bash_completion.install "contrib/completion/bash/docker"
|
|
fish_completion.install "contrib/completion/fish/docker.fish"
|
|
zsh_completion.install "contrib/completion/zsh/_docker"
|
|
end
|
|
|
|
test do
|
|
assert_match "-F _docker",
|
|
shell_output("bash -c 'source #{bash_completion}/docker && complete -p docker'")
|
|
end
|
|
end
|