src/Rocketeer/Services/Connections/Shell/Modules/Core.php
public function runRaw($commands, $array = false, $trim = false)
    {
        $pretend = $this->getOption('pretend');
        if ($pretend) {
            return $array ? [$commands] : 'true';
        }

        $this->displayCommands($commands, OutputInterface::VERBOSITY_VERY_VERBOSE);

        // Run commands
        $output = null;
        $this->modulable->getConnection()->run($commands, function ($results) use (&$output) {
            $output .= $results;
        });

        // Process the output
        $output = $this->processOutput($output, $array, $trim);

        return $output;
    }
public function runRaw($commands, $array = false, $trim = false)
    {
        $pretend = $this->getOption('pretend');
        if ($pretend) {
            return $array ? [$commands] : 'true';
        }

        $this->displayCommands($commands, OutputInterface::VERBOSITY_VERY_VERBOSE);

        // Run commands
        $output = null;
        $this->modulable->getConnection()->run($commands, function ($results) use (&$output) {
            $output .= $results;
        });

        // Process the output
        $output = $this->processOutput($output, $array, $trim);

        return $output;
    }
public function runRaw ( $ commands , $ array = false , $ trim = false ) { $ pretend = $ this -> getOption ( 'pretend' ) ; if ( $ pretend ) { return $ array ? [ $ commands ] : 'true' ; } $ this -> displayCommands ( $ commands , OutputInterface :: VERBOSITY_VERY_VERBOSE ) ; // Run commands $ output = null ; $ this -> modulable -> getConnection ( ) -> run ( $ commands , function ( $ results ) use ( & $ output ) { $ output .= $ results ; } ) ; // Process the output $ output = $ this -> processOutput ( $ output , $ array , $ trim ) ; return $ output ; }
Run a raw command, without any processing, and
get its output as a string or array.

@param string $commands
@param bool   $array    Whether the output should be returned as an array
@param bool   $trim     Whether the output should be trimmed

@return string|string[]
Run a raw command without any processing and get its output as a string or array .