homebrew-core/Formula/django-completion.rb
2017-05-06 18:16:24 -07:00

18 lines
562 B
Ruby

class DjangoCompletion < Formula
desc "Bash completion for Django"
homepage "https://github.com/django/django"
url "https://github.com/django/django/archive/1.11.1.tar.gz"
sha256 "98841534054d7e6c24d90cc065b755879706ce65d83ea00a34be675d765edbea"
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