bundler-completion: import from homebrew/completions.
This commit is contained in:
parent
e329be0a9c
commit
5e77320b9f
1 changed files with 20 additions and 0 deletions
20
Formula/bundler-completion.rb
Normal file
20
Formula/bundler-completion.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
class BundlerCompletion < Formula
|
||||
desc "Bash completion for Bundler"
|
||||
homepage "https://github.com/mernen/completion-ruby"
|
||||
url "https://github.com/mernen/completion-ruby.git",
|
||||
:revision => "f3e4345042b0cc48317e45b673dfd3d23904b9a7"
|
||||
version "2"
|
||||
|
||||
head "https://github.com/mernen/completion-ruby.git"
|
||||
|
||||
bottle :unneeded
|
||||
|
||||
def install
|
||||
bash_completion.install "completion-bundle" => "bundler"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "-F __bundle",
|
||||
shell_output("source #{bash_completion}/bundler && complete -p bundle")
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue