homebrew-core/Formula/django-completion.rb
2017-08-01 23:07:25 -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.4.tar.gz"
sha256 "e7e3831b79f232a81aefd93ce3ad0ac2ead4c60732068acccda96a0b3cd91d79"
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