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.7.tar.gz"
|
|
sha256 "46d7e4d9c55d99a7245dc068a11b3d676bcec34149e09a24c2ddf9e5c427e3a1"
|
|
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
|