Commit d26425ef authored by Victor Nikulshin's avatar Victor Nikulshin
Browse files

Merge branch 'feature/config-import' into '3.x'

Add drush.config_import

See merge request !39
parents 33cc0e3e 2338c702
Pipeline #2488 failed with stages
in 50 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)
...@@ -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)))
def config_import():
Import configurations from a config directory.
dk_run(['php'], user=env.local_userid,
cmd="drush config-import -y")
print(green('Configurations imported.'))
Supports Markdown
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