src/Rocketeer/Services/Connections/Shell/Modules/Core.php
protected function sudoCommand($sudo, $command)
    {
        $sudo = is_bool($sudo) ? 'sudo' : 'sudo -u '.$sudo;
        $command = $sudo.' '.$command;

        return $command;
    }
protected function sudoCommand($sudo, $command)
    {
        $sudo = is_bool($sudo) ? 'sudo' : 'sudo -u '.$sudo;
        $command = $sudo.' '.$command;

        return $command;
    }
protected function sudoCommand ( $ sudo , $ command ) { $ sudo = is_bool ( $ sudo ) ? 'sudo' : 'sudo -u ' . $ sudo ; $ command = $ sudo . ' ' . $ command ; return $ command ; }
Execute a command as a sudo user.

@param string|bool $sudo
@param string      $command

@return string
Execute a command as a sudo user .