homebrew-core/Formula/rake-completion.rb

19 lines
510 B
Ruby

class RakeCompletion < Formula
desc "Bash completion for Rake"
homepage "https://github.com/JoeNyland/rake-completion"
url "https://github.com/JoeNyland/rake-completion/archive/v1.0.1.tar.gz"
sha256 "085801e62cb240311d77885778a603f649b3fd5d85ee279691d1d00bc060bba6"
license "MIT"
bottle :unneeded
def install
bash_completion.install "rake.sh" => "rake"
end
test do
assert_match "-F _rakecomplete",
shell_output("source #{bash_completion}/rake && complete -p rake")
end
end