2017-01-23 15:26:30 +00:00
|
|
|
class DockerMachineCompletion < Formula
|
|
|
|
desc "docker-machine completion script"
|
2017-02-12 18:21:45 +00:00
|
|
|
homepage "https://docs.docker.com/machine/completion/"
|
2017-02-28 16:23:05 +00:00
|
|
|
url "https://github.com/docker/machine/archive/v0.10.0.tar.gz"
|
|
|
|
sha256 "ed64698723436e68341a1ebd8486006293eac306bfa8628e924b38bfcb5b039d"
|
2017-02-12 18:21:45 +00:00
|
|
|
head "https://github.com/docker/machine.git"
|
2017-01-23 15:26:30 +00:00
|
|
|
|
|
|
|
bottle :unneeded
|
|
|
|
|
|
|
|
conflicts_with "docker-machine",
|
|
|
|
:because => "docker-machine already includes completion scripts"
|
|
|
|
|
|
|
|
def install
|
2017-02-12 18:21:45 +00:00
|
|
|
bash_completion.install "contrib/completion/bash/docker-machine.bash"
|
|
|
|
zsh_completion.install "contrib/completion/zsh/_docker-machine"
|
2017-01-23 15:26:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2017-02-12 18:21:45 +00:00
|
|
|
assert_match "-F _docker_machine",
|
|
|
|
shell_output("bash -c 'source #{bash_completion}/docker-machine.bash && complete -p docker-machine'")
|
2017-01-23 15:26:30 +00:00
|
|
|
end
|
|
|
|
end
|