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
f2cb5d33
Commit
f2cb5d33
authored
Jun 28, 2016
by
Samuel Sirois
Browse files
Add git status check on "dangerous" tasks (init, install)
parent
06a55f63
Changes
1
Hide whitespace changes
Inline
Side-by-side
__init__.py
View file @
f2cb5d33
...
...
@@ -18,12 +18,15 @@ def init():
Complete local installation process, used generally when building the docker image for install and configure Drupal.
"""
execute
(
docker
.
image_create
)
execute
(
docker
.
container_start
)
execute
(
drush
.
make
,
'install'
)
execute
(
drush
.
site_install
,
host
=
'root@{}'
.
format
(
env
.
container_ip
))
execute
(
drush
.
aliases
)
execute
(
behat
.
init
,
host
=
'root@{}'
.
format
(
env
.
container_ip
))
if
(
git
.
isGitDirty
()):
if
(
confirm
(
red
(
'There are warnings on status of your repositories. '
'Do you want to continue and reset all changes to remote repositories'' states?'
),
default
=
False
)):
execute
(
docker
.
image_create
)
execute
(
docker
.
container_start
)
execute
(
drush
.
make
,
'install'
)
execute
(
drush
.
site_install
,
host
=
'root@{}'
.
format
(
env
.
container_ip
))
execute
(
drush
.
aliases
)
execute
(
behat
.
init
,
host
=
'root@{}'
.
format
(
env
.
container_ip
))
...
...
@@ -48,9 +51,12 @@ def install():
Run the full installation process.
"""
execute
(
drush
.
make
,
'install'
)
execute
(
drush
.
site_install
)
execute
(
behat
.
init
)
if
(
git
.
isGitDirty
()):
if
(
confirm
(
red
(
'There are warnings on status of your repositories. '
'Do you want to continue and reset all changes to remote repositories'' states?'
),
default
=
False
)):
execute
(
drush
.
make
,
'install'
)
execute
(
drush
.
site_install
)
execute
(
behat
.
init
)
...
...
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