18 lines
562 B
Ruby
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.3.tar.gz"
|
|
sha256 "d6f7ea3d6dfd1369d62bff7b4ae64fbd9389214df5aea155fe29c21dad58e69d"
|
|
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
|