Commit 2338c702 authored by Samuel Sirois's avatar Samuel Sirois
Browse files

Add drush.config_import

parent 33cc0e3e
Pipeline #2487 failed with stages
in 1 minute and 6 seconds
...@@ -104,3 +104,4 @@ def update(): ...@@ -104,3 +104,4 @@ def update():
""" """
execute(drush.make, 'update') execute(drush.make, 'update')
execute(drush.updatedb) execute(drush.updatedb)
execute(drush.config_import)
...@@ -237,3 +237,13 @@ def import_dump(dump=False): ...@@ -237,3 +237,13 @@ def import_dump(dump=False):
print(green('Database dump successfully restored.')) print(green('Database dump successfully restored.'))
else: else:
print(red('Could not find database dump at {}'.format(dump))) 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.'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment