homebrew-core/Formula/django-completion.rb
2018-04-02 22:29:45 -07:00

18 lines
561 B
Ruby

class DjangoCompletion < Formula
desc "Bash completion for Django"
homepage "https://github.com/django/django"
url "https://github.com/django/django/archive/2.0.4.tar.gz"
sha256 "dfa6c5d4440dba3ee53e70feb5db9b028fe3e7bf2cd04a0621cf456ab6ef9e38"
head "https://github.com/django/django.git"
bottle :unneeded
def install
bash_completion.install "extras/django_bash_completion" => "django"
end
test do
assert_match "-F _django_completion",
shell_output("source #{bash_completion}/django && complete -p django-admin.py")
end
end