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
16bff396
Commit
16bff396
authored
Mar 25, 2016
by
Emmanuel Milou
Browse files
Fix: run archive_dump from local
parent
c6b7e1c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
drush.py
View file @
16bff396
...
@@ -130,16 +130,14 @@ def site_install():
...
@@ -130,16 +130,14 @@ def site_install():
@
task
@
task
@
roles
(
'
d
oc
ker
'
)
@
roles
(
'
l
oc
al
'
)
def
archive_dump
(
role
=
'
d
oc
ker
'
):
def
archive_dump
(
role
=
'
l
oc
al
'
):
"""
"""
Archive the platform for release or deployment.
Archive the platform for release or deployment.
:param role Default 'role' where to run the task
:param role Default 'role' where to run the task
"""
"""
role
=
'docker'
with
h
.
fab_cd
(
role
,
env
.
site_root
):
with
h
.
fab_cd
(
role
,
env
.
docker_site_root
):
platform
=
'{}-{}.tar.gz'
.
format
(
env
.
project_name
,
datetime
.
now
().
strftime
(
'%Y%m%d_%H%M%S'
))
platform
=
'{}-{}.tar.gz'
.
format
(
env
.
project_name
,
datetime
.
now
().
strftime
(
'%Y%m%d_%H%M%S'
))
print
(
green
(
'Cleaning previous archives'
))
print
(
green
(
'Cleaning previous archives'
))
h
.
fab_run
(
role
,
'rm -f {}/*.tar.gz'
.
format
(
env
.
builddir
))
h
.
fab_run
(
role
,
'rm -f {}/*.tar.gz'
.
format
(
env
.
builddir
))
...
...
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