library/Services/Library/CliExecutor.php
static function executeCommand($command)
    {
        exec($command, $output, $resultCode);

        if ($resultCode > 0) {
            $output = implode("\n", $output);
            throw new Exception("Failed to execute command: '$command' with output: '$output' ");
        }
    }
static function executeCommand($command)
    {
        exec($command, $output, $resultCode);

        if ($resultCode > 0) {
            $output = implode("\n", $output);
            throw new Exception("Failed to execute command: '$command' with output: '$output' ");
        }
    }
static function executeCommand ( $ command ) { exec ( $ command , $ output , $ resultCode ) ; if ( $ resultCode > 0 ) { $ output = implode ( "\n" , $ output ) ; throw new Exception ( "Failed to execute command: '$command' with output: '$output' " ) ; } }
Execute shell command.
Throw an exception in if shell command fails.

@param string $command

@throws Exception
Execute shell command . Throw an exception in if shell command fails .