diff --git a/README.md b/README.md index 6edc2fe6..8ad73e13 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,7 @@ The Task Runner comes with the following built-in commands: | `drupal:site-install` | Install a target Drupal site using default configuration values and/or CLI options | | `drupal:site-pre-install` | Run Drupal pre-install commands as listed under the `drupal.pre_install` property | | `drupal:site-post-install` | Run Drupal post-install commands as listed under the `drupal.post_install` property | +| `drupal:services-setup` | Create services file in site directory by copying given file (as parameter or in `drupal.service_parameters`) | | `drupal:settings-setup` | Setup default Drupal settings file by appending values specified at `drupal.settings` | | `drupal:drush-setup` | Setup Drush 8 and 9 configuration files | | `release:create-archive` | Create and archive a release for the current project | diff --git a/src/Commands/AbstractDrupalCommands.php b/src/Commands/AbstractDrupalCommands.php index 1d57e618..7ab9ccd6 100644 --- a/src/Commands/AbstractDrupalCommands.php +++ b/src/Commands/AbstractDrupalCommands.php @@ -329,8 +329,7 @@ public function drushSetup(array $options = [ * @option service-parameters Drupal services filename. * @option root Drupal root. * @option sites-subdir Drupal site subdirectory. - * @option force Drupal force generation of a new settings.php. - * @option skip-permissions-setup Drupal skip permissions setup. + * @option force Drupal force generation of a new services.yml. * * @param array $options * @@ -341,7 +340,6 @@ public function servicesSetup(array $options = [ 'root' => InputOption::VALUE_REQUIRED, 'sites-subdir' => InputOption::VALUE_REQUIRED, 'force' => false, - 'skip-permissions-setup' => false, ]) { $services_runner_file = $this->getConfig()->get('drupal.service_parameters'); @@ -357,10 +355,6 @@ public function servicesSetup(array $options = [ $collection = []; $collection[] = $this->taskFilesystemStack()->copy($services_options_file, $services_destination_file, (bool) $options['force']); - if (!$options['skip-permissions-setup']) { - $collection[] = $this->permissionsSetup($options); - } - return $this->collectionBuilder()->addTaskList($collection); } diff --git a/tests/fixtures/simulation.yml b/tests/fixtures/simulation.yml index 0d60fb4a..12aa9eaa 100644 --- a/tests/fixtures/simulation.yml +++ b/tests/fixtures/simulation.yml @@ -260,6 +260,12 @@ - "WriteConfiguration('web/sites/default/drushrc.php'" - "File\\Write('./drush/drush.yml')" +- command: 'drupal:services-setup --service-parameters=runner.yml' + configuration: [] + composer: '' + contains: + - "Filesystem\\FilesystemStack()\n ->copy('runner.yml', 'build/sites/default/services.yml'" + - command: 'drupal:settings-setup' configuration: [] composer: ''