From 5a6ab2e3287e4104ac1571655a35252d872eaae1 Mon Sep 17 00:00:00 2001 From: Gareth Midwood Date: Sat, 31 Aug 2019 22:09:30 +0100 Subject: [PATCH] remove drush container --- cdev.module.yml | 1 - cdev.services.xml | 4 --- src/Environment/Command/Container/Drush.php | 33 --------------------- src/Environment/Command/SetupEnvCommand.php | 17 +---------- 4 files changed, 1 insertion(+), 54 deletions(-) delete mode 100644 src/Environment/Command/Container/Drush.php diff --git a/cdev.module.yml b/cdev.module.yml index 81eecf9..dadb413 100644 --- a/cdev.module.yml +++ b/cdev.module.yml @@ -3,7 +3,6 @@ commands: - cdev.docker_container_php - cdev.docker_container_mailcatcher - cdev.docker_container_redis - - cdev.docker_container_drush - cdev.docker_setup - cdev.docker_watch_command environments: diff --git a/cdev.services.xml b/cdev.services.xml index 14c94d7..64140f7 100644 --- a/cdev.services.xml +++ b/cdev.services.xml @@ -29,10 +29,6 @@ class="Cdev\Docker\Environment\Command\Container\Redis"> - - - diff --git a/src/Environment/Command/Container/Drush.php b/src/Environment/Command/Container/Drush.php deleted file mode 100644 index 32075f4..0000000 --- a/src/Environment/Command/Container/Drush.php +++ /dev/null @@ -1,33 +0,0 @@ - false, - 'container_name' => 'project_drush', - 'image' => 'drupaldocker/drush', - 'links' => [ - 'mysql' - ], - 'volumes_from' => [ - 'php' - ] - ]; - - protected function askQuestions() - { - $path = $this->_input->getOption('path'); - $src = $this->_input->getOption('src'); - $dockername = $this->_input->getOption('name'); - $dockerport = $this->_input->getOption('port'); - - $this->_config['container_name'] = $dockername . '_drush'; - } -} diff --git a/src/Environment/Command/SetupEnvCommand.php b/src/Environment/Command/SetupEnvCommand.php index 460d546..d1c9442 100644 --- a/src/Environment/Command/SetupEnvCommand.php +++ b/src/Environment/Command/SetupEnvCommand.php @@ -102,22 +102,7 @@ class SetupEnvCommand extends ConfigurationCommand 'command' => Container\Redis::COMMAND_NAME, 'config' => Container\Redis::CONFIG_DIR . '/' . Container\Redis::CONFIG_FILE - ], - 'Drush' => [ - 'defaultActive' => false, - 'node' => 'drush', - 'command' => Container\Drush::COMMAND_NAME, - 'config' => Container\Drush::CONFIG_DIR . '/' . - Container\Drush::CONFIG_FILE, - 'depends' => [ - 'php', - 'mysql' - ], - 'frameworks' => [ - 'Drupal8', - 'Drupal7' - ] - ] + ] ]; /**