2017-01-23 15:26:29 +00:00
|
|
|
class DockerComposeCompletion < Formula
|
|
|
|
desc "docker-compose completion script"
|
|
|
|
homepage "https://docs.docker.com/compose/completion/"
|
2017-02-22 04:42:24 +00:00
|
|
|
url "https://github.com/docker/compose/archive/1.11.2.tar.gz"
|
|
|
|
sha256 "658a3bf8200499d37b7e7c9701dee5c031da3f22095d75c60d4bdcd7e8f8af9a"
|
2017-01-23 15:26:29 +00:00
|
|
|
head "https://github.com/docker/compose.git"
|
|
|
|
|
|
|
|
bottle :unneeded
|
|
|
|
|
|
|
|
conflicts_with "docker-compose",
|
|
|
|
:because => "docker-compose already includes completion scripts"
|
|
|
|
|
|
|
|
def install
|
|
|
|
bash_completion.install "contrib/completion/bash/docker-compose"
|
|
|
|
zsh_completion.install "contrib/completion/zsh/_docker-compose"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "-F _docker_compose",
|
|
|
|
shell_output("bash -c 'source #{bash_completion}/docker-compose && complete -p docker-compose'")
|
|
|
|
end
|
|
|
|
end
|