/**
  * Executes the Task
  *
  * @return void
  */
 public function execute()
 {
     parent::execute();
     $label = $this->state === '0' ? 'off' : 'on';
     $this->explainer->line('Turning ' . $label . ' Drupal\'s maintenance mode.');
     return array($this->drush->run('setMaintenanceMode', $this->state));
 }
Ejemplo n.º 2
0
 /**
  * Executes the Task
  *
  * @return void
  */
 public function execute()
 {
     parent::execute();
     $setting = $this->drushPlugin->getConfig($this, 'twig_debug');
     $label = $setting ? 'on' : 'off';
     $this->explainer->line('Turning ' . $label . ' Twig debugging.');
     return array($this->drush->run('twigDebug', $this->drushPlugin->getConfig($this, 'twig_debug')));
 }
 /**
  * Executes the Task
  *
  * @return void
  */
 public function execute()
 {
     parent::execute();
     if (!empty($this->drushTasks)) {
         $this->explainer->line('Running all extra Drush tasks configured for the ' . $this->event . ' hook.');
         foreach ($this->drushTasks as $task) {
             $this->drush->run($task);
         }
     } else {
         $this->explainer->line('No extra Drush tasks configured for the ' . $this->event . ' hook, nothing to do.');
     }
 }
Ejemplo n.º 4
0
 /**
  * Executes the Task
  *
  * @return void
  */
 public function execute()
 {
     parent::execute();
     $this->explainer->line('Dumping the Drupal database.');
     return array($this->drush->runForCurrentRelease('sqlDump', $this->releasesManager->getCurrentRelease() . '.sql'));
 }
Ejemplo n.º 5
0
 /**
  * Executes the Task
  *
  * @return void
  */
 public function execute()
 {
     parent::execute();
     $this->explainer->line('Setting the Views settings to more developer-oriented.');
     return array($this->drush->run('views-dev'));
 }
Ejemplo n.º 6
0
 /**
  * Executes the Task
  *
  * @return void
  */
 public function execute()
 {
     parent::execute();
     $this->explainer->line('Setting the active site.');
     return array($this->drush->run('siteSet'));
 }
Ejemplo n.º 7
0
 /**
  * Executes the Task
  *
  * @return void
  */
 public function execute()
 {
     parent::execute();
     $this->explainer->line('Importing the drupal configuration files.');
     return array($this->drush->run('configImport', $this->drushPlugin->getConfig($this, 'drupal_config')));
 }
Ejemplo n.º 8
0
 /**
  * Executes the Task
  *
  * @return void
  */
 public function execute()
 {
     parent::execute();
     $this->explainer->line('Running pending Drupal database updates.');
     return array($this->drush->run('updatedb'));
 }
Ejemplo n.º 9
0
 /**
  * Executes the Task
  *
  * @return void
  */
 public function execute()
 {
     parent::execute();
     $this->explainer->line('Rebuilding the Drupal cache.');
     return array($this->drush->run('advaggClearAllFiles'), $this->drush->run('cacheRebuild'));
 }