From d62f59ded6cd6fca9df0df5ed6c8521245f9310b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 23 Jan 2017 15:26:28 +0000 Subject: [PATCH] boot2docker-completion: import from homebrew/completions. --- Formula/boot2docker-completion.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Formula/boot2docker-completion.rb diff --git a/Formula/boot2docker-completion.rb b/Formula/boot2docker-completion.rb new file mode 100644 index 0000000000..40abe89e3d --- /dev/null +++ b/Formula/boot2docker-completion.rb @@ -0,0 +1,18 @@ +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