CCM::run PHP Method

run() private method

private run ( )
    private function run()
    {
        $args = func_get_args();
        foreach ($args as $i => $arg) {
            $args[$i] = escapeshellarg($arg);
        }
        $command = sprintf('ccm %s', implode(' ', $args));
        if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' || strtoupper(substr(PHP_OS, 0, 6)) === 'CYGWIN') {
            $keepWindowsContext = '';
            if ($args[0] != "\"start\"") {
                $keepWindowsContext = '/B ';
            }
            $command = 'START "PHP Driver - CCM" ' . $keepWindowsContext . '/MIN /WAIT ' . $command;
        }
        $this->process->setCommandLine($command);
        if (!$this->isSilent) {
            echo 'ccm > ' . $command . "\n";
        }
        $this->process->mustRun(function ($type, $buffer) {
            if (!$this->isSilent) {
                echo 'ccm > ' . $buffer;
            }
        });
        return $this->process->getOutput();
    }