From d137740a19fef3be0983bc7bf293d3d1136b276b Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Tue, 24 Oct 2017 10:06:47 +0200 Subject: [PATCH] Add some new templates for Drush 9 --- src/Handler.php | 6 ++++++ templates/aliases.yml.twig | 10 ++++++++++ templates/drush.yml.twig | 15 +++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 templates/aliases.yml.twig create mode 100644 templates/drush.yml.twig diff --git a/src/Handler.php b/src/Handler.php index 6e60d57..a30f18b 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -178,6 +178,12 @@ class Handler { 'drushrc.php' => [ 'dest' => $projectRoot . '/drush', ], + 'aliases.yml' => [ + 'dest' => $projectRoot . '/drush', + ], + 'drush.yml' => [ + 'dest' => $projectRoot . '/drush', + ], '.env' => [ 'dest' => $projectRoot, ], diff --git a/templates/aliases.yml.twig b/templates/aliases.yml.twig new file mode 100644 index 0000000..16b9e5c --- /dev/null +++ b/templates/aliases.yml.twig @@ -0,0 +1,10 @@ +sites: + {{ projectname }}: + dev: + root: '/var/www/html/{{ webRoot }}' + uri: '{{ projectname }}.docker.localhost:8000' + live: + root: '' + uri: '' + remote-host: '' + remote-user: '' diff --git a/templates/drush.yml.twig b/templates/drush.yml.twig new file mode 100644 index 0000000..379175f --- /dev/null +++ b/templates/drush.yml.twig @@ -0,0 +1,15 @@ +options: + uri: 'http://{{ projectname }}.docker.localhost:8000'; +command: + sql: + options: + structure-tables: + common: + - 'cache' + - 'cache_*' + - 'history' + - 'search_*' + - 'sessions' + - 'watchdog' + skip-tables: + common: [] -- GitLab