Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Drupal
drupalizer
Commits
4df2c024
Commit
4df2c024
authored
Nov 07, 2016
by
Victor Nikulshin
Browse files
Merge branch 'features/docker-clean-execute' into '2.x'
Use fabric API to execute subtasks in docker.clean See merge request
!25
parents
c6acd3e4
749e0863
Pipeline
#1350
passed with stages
in 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docker.py
View file @
4df2c024
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.contrib.console
import
confirm
...
...
@@ -231,9 +231,9 @@ def clean():
red
(
'This will stop, remove container and delete docker image '
+
'related to this project. Do you want to continue?'
),
default
=
False
)):
container_stop
(
)
container_remove
(
)
image_remove
(
)
execute
(
container_stop
)
execute
(
container_remove
)
execute
(
image_remove
)
@
task
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment