Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change invoke stop to use stop instead of down #37

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nautobot-app/{{ cookiecutter.project_slug }}/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ def restart(context, service=""):

@task(help={"service": "If specified, only affect this service."})
def stop(context, service=""):
"""Stop specified or all services, if service is not specified, remove all containers."""
"""Stop specified or all services, if service is not specified, stop all containers."""
print("Stopping Nautobot...")
docker_compose(context, "stop" if service else "down --remove-orphans", service=service)
docker_compose(context, "stop", service=service)


@task
Expand Down
4 changes: 2 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ def restart(context, service=""):

@task(help={"service": "If specified, only affect this service."})
def stop(context, service=""):
"""Stop specified or all services, if service is not specified, remove all containers."""
"""Stop specified or all services, if service is not specified, stop all containers."""
command = [
"docker compose",
"stop" if service else "down --remove-orphans",
"stop",
"--",
service,
]
Expand Down