Magestead\Command\NewCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : Magento2Project | MagentoProject
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return Magestead\Installers\Magento2Project | Magestead\Installers\MagentoProject
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $project = $this->setProject($input);
        $helper = $this->getHelper('question');
        $options = (new Options($helper, $input, $output, $project))->getAllOptions();
        $this->setupProject($output, $options);
        $output->writeln('<info>Spinning up your custom box</info>');
        new ProcessCommand('vagrant up', $this->_projectPath, $output);
        return Project::create($options, $this->_msConfig, $this->_projectPath, $output);
    }