Magestead\Command\VM\RunCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : ProcessCommand
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return Magestead\Command\ProcessCommand
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $command = $input->getArgument('ssh-command');
        $output->writeln('<info>Running "' . $command . '" on Magestead</info>');
        $passedCommand = "vagrant ssh -c '" . $command . "'";
        return new ProcessCommand($passedCommand, $this->_projectPath, $output);
    }