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
2338c702
Commit
2338c702
authored
Jan 11, 2017
by
Samuel Sirois
Browse files
Add drush.config_import
parent
33cc0e3e
Pipeline
#2487
failed with stages
in 1 minute and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
__init__.py
View file @
2338c702
...
...
@@ -104,3 +104,4 @@ def update():
"""
execute
(
drush
.
make
,
'update'
)
execute
(
drush
.
updatedb
)
execute
(
drush
.
config_import
)
drush.py
View file @
2338c702
...
...
@@ -237,3 +237,13 @@ def import_dump(dump=False):
print
(
green
(
'Database dump successfully restored.'
))
else
:
print
(
red
(
'Could not find database dump at {}'
.
format
(
dump
)))
@
task
def
config_import
():
"""
Import configurations from a config directory.
"""
dk_run
(
env
.
services
[
'php'
],
user
=
env
.
local_userid
,
cmd
=
"drush config-import -y"
)
print
(
green
(
'Configurations imported.'
))
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