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
1fadbec9
Commit
1fadbec9
authored
Mar 29, 2016
by
Emmanuel Milou
Browse files
Add option to archive-dump
Refs #89070
parent
ae73c936
Changes
1
Hide whitespace changes
Inline
Side-by-side
drush.py
View file @
1fadbec9
...
...
@@ -144,13 +144,12 @@ def archive_dump(role='docker'):
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'
))
print
(
green
(
'Cleaning previous archives'
))
h
.
fab_run
(
role
,
'rm -f {}/build/*.tar.gz'
.
format
(
env
.
docker_workspace
))
print
(
green
(
'Archiving the platform'
))
h
.
fab_run
(
role
,
'rm -f {}/*.tar.gz'
.
format
(
env
.
builddir
))
print
green
(
'All tar.gz archives found in {} have been deleted.'
.
format
(
env
.
builddir
))
h
.
fab_run
(
role
,
'drush archive-dump --destination={}/build/{} --tar-options="--exclude=.git"'
.
format
(
env
.
docker_workspace
,
platform
)
'drush archive-dump --destination={}/build/{} --tags="sflinux {}" --generatorversion="2.x" --generator="Drupalizer::fab drush.archive_dump" --tar-options="--exclude=.git"'
.
format
(
env
.
docker_workspace
,
platform
,
env
.
project_name
)
)
@
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