/**
  * 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));
 }
 /**
  * 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.');
     }
 }
示例#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'));
 }
示例#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'));
 }
示例#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'));
 }
 /**
  * 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')));
 }
示例#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'));
 }
 /**
  * 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'));
 }