homebrew-core/Formula/boot2docker-completion.rb

18 lines
629 B
Ruby

class Boot2dockerCompletion < Formula
desc "Bash completion for Boot2docker"
homepage "https://github.com/alexandregz/boot2docker-completion"
url "https://github.com/alexandregz/boot2docker-completion/archive/1.0.tar.gz"
sha256 "51d162ed4f890f9d702a215d11a2564ec44baebc38ede49f75f9b36521d856fb"
head "https://github.com/alexandregz/boot2docker-completion.git"
bottle :unneeded
def install
bash_completion.install "boot2docker-completion.bash"
end
test do
assert_match "-F _boot2docker",
shell_output("source #{bash_completion}/boot2docker-completion.bash && complete -p boot2docker")
end
end