Magestead\Command\Log\ViewCommand::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)
    {
        $log = $input->getArgument('log');
        $output->writeln('<info>Viewing ' . ucwords($log) . ' Log</info>');
        $command = $this->getCommand(new Config($output), $log);
        if (!$command) {
            return $output->writeln('<error>Command not available for this application</error>');
        }
        $pCommand = "vagrant ssh -c '" . $command . "'";
        return new ProcessCommand($pCommand, $this->_projectPath, $output);
    }