22 lines
786 B
Ruby
22 lines
786 B
Ruby
class DockerMachineCompletion < Formula
|
|
desc "Docker-machine completion script"
|
|
homepage "https://docs.docker.com/machine/completion/"
|
|
url "https://github.com/docker/machine/archive/v0.12.2.tar.gz"
|
|
sha256 "94331c66bf9dc4200c20c8bbf48920783507f804f9698df9cd8a720eaff9b74c"
|
|
head "https://github.com/docker/machine.git"
|
|
|
|
bottle :unneeded
|
|
|
|
conflicts_with "docker-machine",
|
|
:because => "docker-machine already includes completion scripts"
|
|
|
|
def install
|
|
bash_completion.install Dir["contrib/completion/bash/*.bash"]
|
|
zsh_completion.install "contrib/completion/zsh/_docker-machine"
|
|
end
|
|
|
|
test do
|
|
assert_match "-F _docker_machine",
|
|
shell_output("bash -O extglob -c 'source #{bash_completion}/docker-machine.bash && complete -p docker-machine'")
|
|
end
|
|
end
|