예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function run()
 {
     try {
         $this->machine->start();
     } catch (MachineException $e) {
         // Ignore the problem as if the machine is not running, we
         // will run the installer.
     }
     if (!$this->machine->isRunning()) {
         $this->dockerInstaller->run();
     }
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->dockerInstaller->run();
     $output->writeln(['', '    The installation looks to be successful.', '    You may need to <info>RESTART YOUR SHELL</info> to refresh the environment variables.', '']);
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $userInteraction = new ConsoleUserInteraction($input, $output);
     $installer = new DockerInstaller();
     $installer->install($userInteraction);
 }