Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     try {
         $this->projectManager->start($this->project);
     } catch (ProjectException $e) {
         $output->writeln('<error>' . $e->getMessage() . '</error>');
         return 1;
     }
     return $this->getApplication()->run(new ArrayInput(['command' => 'ps']), $output);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->projectManager->stop($this->project);
 }
 /**
  * {@inheritdoc}
  */
 public function reset(Project $project, array $containers = [])
 {
     return $this->projectManager->reset($project, $containers);
 }
Ejemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $containers = $input->getArgument('container');
     $this->projectManager->reset($this->project, $containers);
     $output->writeln(['Container(s) successfully reset.']);
 }