homebrew-core/Formula/docker-compose-completion.rb
ilovezfs facefac8af docker-compose-completion 1.10.1
Closes #9555.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2017-02-02 15:36:53 +01:00

22 lines
772 B
Ruby

class DockerComposeCompletion < Formula
desc "docker-compose completion script"
homepage "https://docs.docker.com/compose/completion/"
url "https://github.com/docker/compose/archive/1.10.1.tar.gz"
sha256 "a49b8c8c9319aac96d4729b765524cc6d3aee3a055633d43cfb58695c67b5733"
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