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
Compare Revisions
584d55fe88cb6dc0b308d2bb0acff16345c8ceb3...6a8a766dcfc8be5ee6a9cc2a0a7941d9dfeeb301
Commits (1)
Run doc_gen into the container too.
· 6a8a766d
Ernesto Rodriguez Ortiz
authored
Mar 25, 2016
6a8a766d
Hide whitespace changes
Inline
Side-by-side
drush.py
View file @
6a8a766d
...
...
@@ -137,10 +137,10 @@ def archive_dump(role='docker'):
:param role Default 'role' where to run the task
"""
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'
))
print
(
green
(
'Cleaning previous archives'
))
h
.
fab_run
(
role
,
'rm -f {}/*.tar.gz'
.
format
(
env
.
builddir
))
h
.
fab_run
(
role
,
'rm -f {}/
build/
*.tar.gz'
.
format
(
env
.
docker_workspace
))
print
(
green
(
'Archiving the platform'
))
h
.
fab_run
(
role
,
...
...
@@ -149,19 +149,21 @@ def archive_dump(role='docker'):
)
@
task
@
roles
(
'
l
oc
al
'
)
def
gen_doc
(
role
=
'
l
oc
al
'
):
@
roles
(
'
d
oc
ker
'
)
def
gen_doc
(
role
=
'
d
oc
ker
'
):
"""
Generate README file
:param role Default 'role' where to run the task
"""
if
os
.
path
.
isfile
(
'{}/README.adoc'
.
format
(
env
.
workspace
)):
h
.
fab_run
(
role
,
'asciidoctor -b html5 -o {}/README.html {}/README.adoc'
.
format
(
env
.
workspace
,
env
.
workspace
))
print
(
green
(
'README.html generated in {}'
.
format
(
env
.
workspace
)))
if
os
.
path
.
isfile
(
'{}/CHANGELOG.adoc'
.
format
(
env
.
workspace
)):
h
.
fab_run
(
role
,
'asciidoctor -b html5 -o {}/CHANGELOG.html {}/CHANGELOG.adoc'
.
format
(
env
.
workspace
,
env
.
workspace
))
print
(
green
(
'CHANGELOG.html generated in {}'
.
format
(
env
.
workspace
)))
if
os
.
path
.
isfile
(
'{}/README.adoc'
.
format
(
env
.
docker_workspace
)):
h
.
fab_run
(
role
,
'asciidoctor -b html5 -o {}/README.html {}/README.adoc'
.
format
(
env
.
docker_workspace
,
env
.
docker_workspace
))
print
(
green
(
'README.html generated in {}'
.
format
(
env
.
docker_workspace
)))
if
os
.
path
.
isfile
(
'{}/CHANGELOG.adoc'
.
format
(
env
.
docker_workspace
)):
h
.
fab_run
(
role
,
'asciidoctor -b html5 -o {}/CHANGELOG.html {}/CHANGELOG.adoc'
.
format
(
env
.
docker_workspace
,
env
.
docker_workspace
))
print
(
green
(
'CHANGELOG.html generated in {}'
.
format
(
env
.
docker_workspace
)))