homebrew-core/Formula/django-completion.rb
2017-03-19 14:48:31 +01: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.10.6.tar.gz"
sha256 "90d1b494a77d64e1ef554141807e60d3e83dc44902e74dc97514ce76e1885529"
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