Example #1
0
 /**
  * Execute a single task
  *
  * @param Context $context
  *
  * @return void
  */
 protected function executeTaskrunner(Context $context)
 {
     $this->io->write('');
     $this->io->increaseIndention(1);
     $this->taskRunner->execute($context->getTarget(), $context->getVersion());
     $this->io->decreaseIndention(1);
 }
Example #2
0
 /**
  * Run added tasks
  *
  * @param string  $target
  * @param Version $version
  */
 public function build($target, Version $version)
 {
     $this->dispatch(BuilderEvents::BUILDER_PRE_BUILD);
     $tasks = $this->getSupportedTasks($target, $version);
     $this->taskRunner->setTasks($tasks);
     $this->taskRunner->execute($target, $version);
     $this->dispatch(BuilderEvents::BUILDER_POST_BUILD);
 }