From 181c918a3b105bf88b15601658a50b3899e611de Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 23 Jan 2017 15:26:31 +0000 Subject: [PATCH] packer-completion: import from homebrew/completions. --- Formula/packer-completion.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Formula/packer-completion.rb diff --git a/Formula/packer-completion.rb b/Formula/packer-completion.rb new file mode 100644 index 00000000000..c101f24dfeb --- /dev/null +++ b/Formula/packer-completion.rb @@ -0,0 +1,20 @@ +class PackerCompletion < Formula + desc "Bash completion for Packer" + homepage "https://github.com/mrolli/packer-bash-completion" + url "https://github.com/mrolli/packer-bash-completion.git", + :revision => "2bd2d9da8bdcc7a763a0c551fa9ae8617dc5ecb7" + version "0.6.0" + + head "https://github.com/mrolli/packer-bash-completion.git" + + bottle :unneeded + + def install + bash_completion.install "packer" + end + + test do + assert_match "-F _packer_completion", + shell_output("source #{bash_completion}/packer && complete -p packer") + end +end