Ejemplo n.º 1
0
 /**
  * Register Tasks with Rocketeer
  *
  * @param \Rocketeer\Services\TasksHandler $queue
  *
  * @return void
  */
 public function onQueue(TasksHandler $queue)
 {
     // Before deploy.
     $drushCommand = new Tasks\DrushSqlDump($this->app, $this);
     $queue->addTaskListeners('deploy', 'before', [clone $drushCommand], -10, true);
     $drushCommand = new Tasks\DrushRunConfiguredTasks($this->app, $this, 'before');
     $queue->addTaskListeners('deploy', 'before', [clone $drushCommand], -10, true);
     // After deploy.
     $drushCommand = new Tasks\DrushSiteSet($this->app, $this);
     $queue->addTaskListeners('deploy', 'after', [clone $drushCommand], -10, true);
     $drushCommand = new Tasks\DrushConfigImport($this->app, $this);
     $queue->addTaskListeners('deploy', 'after', [clone $drushCommand], -10, true);
     $drushCommand = new Tasks\DrushMaintenanceMode($this->app, $this, '1');
     $queue->addTaskListeners('deploy', 'after', [clone $drushCommand], -10, true);
     $drushCommand = new Tasks\DrushUpdatedb($this->app, $this);
     $queue->addTaskListeners('deploy', 'after', [clone $drushCommand], -10, true);
     $drushCommand = new Tasks\DrushMaintenanceMode($this->app, $this, '0');
     $queue->addTaskListeners('deploy', 'after', [clone $drushCommand], -10, true);
     $drushCommand = new Tasks\DrushTwigDebug($this->app, $this);
     $queue->addTaskListeners('deploy', 'after', [clone $drushCommand], -10, true);
     $drushCommand = new Tasks\DrushCacheRebuild($this->app, $this);
     $queue->addTaskListeners('deploy', 'after', [clone $drushCommand], -10, true);
     $drushCommand = new Tasks\DrushRunConfiguredTasks($this->app, $this, 'after');
     $queue->addTaskListeners('deploy', 'after', [clone $drushCommand], -10, true);
 }
Ejemplo n.º 2
0
 /**
  * Register Tasks with Rocketeer.
  *
  * @param \Rocketeer\Services\TasksHandler $queue
  */
 public function onQueue(TasksHandler $queue)
 {
     // Create the task instance
     $notify = new Notify($this->app);
     $notify->setNotifier($this);
     $queue->addTaskListeners('deploy', 'before', [clone $notify], -10, true);
     $queue->addTaskListeners('deploy', 'after', [clone $notify], -10, true);
 }