Magestead\Command\PhpspecCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return mixed
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $option = $input->getArgument('option');
        $command = $this->getCommand(new Config($output), $option);
        if (!$command) {
            return $output->writeln('<error>Command not available for this application</error>');
        }
        $output->writeln('<info>Running PHPSpec</info>');
        $passedCommand = "vagrant ssh -c '" . $command . "'";
        passthru($passedCommand);
    }