コード例 #1
0
 /**
  * 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));
 }
コード例 #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')));
 }
コード例 #3
0
 /**
  * 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'));
 }
コード例 #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')));
 }
コード例 #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'));
 }
コード例 #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'));
 }