protected function executeEngineCommand($command, $service = null, $options = [], $quiet = false, $localhost = false)
    {
        if ($command instanceof CommandBuilder) {
            $command = $command->build();
        }
        $engine = $this->getEngineInstance();

        if ($engine instanceof DockerEngineType && !$localhost) {
            $results = $engine->execRaw($command, $service, $options, $quiet);
        } else {
            $results = $this->_exec($command);
        }

        $this->validateTaskResult($results);

        return $results;
    }
protected function executeEngineCommand($command, $service = null, $options = [], $quiet = false, $localhost = false)
    {
        if ($command instanceof CommandBuilder) {
            $command = $command->build();
        }
        $engine = $this->getEngineInstance();

        if ($engine instanceof DockerEngineType && !$localhost) {
            $results = $engine->execRaw($command, $service, $options, $quiet);
        } else {
            $results = $this->_exec($command);
        }

        $this->validateTaskResult($results);

        return $results;
    }
protected function executeEngineCommand ( $ command , $ service = null , $ options = [ ] , $ quiet = false , $ localhost = false ) { if ( $ command instanceof CommandBuilder ) { $ command = $ command -> build ( ) ; } $ engine = $ this -> getEngineInstance ( ) ; if ( $ engine instanceof DockerEngineType && ! $ localhost ) { $ results = $ engine -> execRaw ( $ command , $ service , $ options , $ quiet ) ; } else { $ results = $ this -> _exec ( $ command ) ; } $ this -> validateTaskResult ( $ results ) ; return $ results ; }
Execute environment engine command.

@param $command
@param null $service
@param array $options
@param bool $quiet
@param bool $localhost
@return \Robo\Result|\Robo\ResultData
Execute environment engine command .