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
44214301
Commit
44214301
authored
Mar 16, 2016
by
Emmanuel Milou
Browse files
Add support for release env variable
parent
d82b42b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
fabfile.py
View file @
44214301
...
...
@@ -485,7 +485,7 @@ def delete_root(role='docker', delete=False):
print
green
(
'No Drupal installation is present, we can build a new one.'
)
@
task
(
alias
=
'
dmk
'
)
@
task
(
alias
=
'
make
'
)
@
roles
(
'local'
)
def
drush_make
(
role
=
'local'
,
action
=
'install'
):
"""
...
...
@@ -501,8 +501,7 @@ def drush_make(role='local', action='install'):
LOCALE
=
True
drush_opts
+=
"--contrib-destination=profiles/{} "
.
format
(
PROFILE
.
keys
()[
0
])
if
confirm
(
red
(
'Say [Y] to build distribution at {} in development mode, if you say [n] '
'the distribution will be build in release mode'
.
format
(
DRUPAL_ROOT
))):
if
not
hasattr
(
env
,
'mode'
)
or
env
.
mode
!=
'release'
:
drush_opts
+=
" --working-copy --no-gitinfofile"
if
not
fab_exists
(
role
,
DRUPAL_ROOT
):
fab_run
(
role
,
"mkdir {}"
.
format
(
DRUPAL_ROOT
))
...
...
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