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
6a8a766d
Commit
6a8a766d
authored
Mar 25, 2016
by
Ernesto Rodriguez Ortiz
Browse files
Run doc_gen into the container too.
parent
584d55fe
Changes
1
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
)))
Write
Preview
Markdown
is supported
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