cap-completion: import from homebrew/completions.

This commit is contained in:
Mike McQuaid 2017-01-23 15:26:29 +00:00
parent 5e77320b9f
commit 643680698e

15
Formula/cap-completion.rb Normal file
View file

@ -0,0 +1,15 @@
class CapCompletion < Formula
desc "Bash completion for Capistrano"
homepage "https://github.com/bashaus/capistrano-autocomplete"
url "https://github.com/bashaus/capistrano-autocomplete/archive/v1.0.0.tar.gz"
sha256 "66a94420be44d82ff18f366778e05decde3f16ad05d35fd8ec7b51860b102c0c"
def install
bash_completion.install "cap"
end
test do
assert_match "-F _cap",
shell_output("source #{bash_completion}/cap && complete -p cap")
end
end