Laravel\Envoy\Console\RunCommand::runTaskOverSSH PHP Method

runTaskOverSSH() protected method

Run the given task and return the exit code.
protected runTaskOverSSH ( Task $task ) : integer
$task Laravel\Envoy\Task
return integer
    protected function runTaskOverSSH(Task $task)
    {
        // If the pretending option has been set, we'll simply dump the script out to the command
        // line so the developer can inspect it which is useful for just inspecting the script
        // before it is actually run against these servers. Allows checking for errors, etc.
        if ($this->pretending()) {
            echo $task->script . PHP_EOL;
            return 1;
        } else {
            return $this->passToRemoteProcessor($task);
        }
    }