Commit 749e0863 authored by Victor Nikulshin's avatar Victor Nikulshin
Browse files

Use fabric API to execute subtasks in docker.clean

parent c6acd3e4
from __future__ import unicode_literals from __future__ import unicode_literals
from fabric.api import task, roles, env, local, run, lcd from fabric.api import task, roles, env, local, run, lcd, execute
from fabric.colors import red, green from fabric.colors import red, green
from fabric.contrib.console import confirm from fabric.contrib.console import confirm
...@@ -231,9 +231,9 @@ def clean(): ...@@ -231,9 +231,9 @@ def clean():
red('This will stop, remove container and delete docker image ' + red('This will stop, remove container and delete docker image ' +
'related to this project. Do you want to continue?'), 'related to this project. Do you want to continue?'),
default=False)): default=False)):
container_stop() execute(container_stop)
container_remove() execute(container_remove)
image_remove() execute(image_remove)
@task @task
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment