DataSift\Storyplayer\CommandLib\LocalClient::runCommand PHP Метод

runCommand() публичный Метод

public runCommand ( string $command ) : CommandResult
$command string
Результат CommandResult
    public function runCommand($command)
    {
        // vet our input
        Contract::RequiresValue($command, is_string($command));
        Contract::RequiresValue($command, !empty($command));
        // make the params printable / executable
        // $printableParams = $this->convertParamsForUse($params);
        // what are we doing?
        $log = usingLog()->startAction("run command '{$command}' against localhost ");
        // build the full command
        // <command> <command-args>
        //    the command to run on the local OS
        //    (assumes the command will be globbed by the local shell)
        //$fullCommand = str_replace('"', '\"', $command);
        $fullCommand = $command;
        // run the command
        $commandRunner = $this->st->getNewCommandRunner();
        $result = $commandRunner->runSilently($fullCommand);
        // all done
        $log->endAction("return code was '{$result->returnCode}'");
        return $result;
    }