public function runDrushCommand($command, $quiet = false, $localhost = false)
    {
        if ($command instanceof CommandBuilder) {
            $drush = $command;
        } else {
            $drush = new DrushCommand(null, $localhost);
            foreach (explode('&&', $command) as $string) {
                $drush->command($string);
            }
        }

        return $this->executeEngineCommand(
            $drush,
            $this->getPhpServiceName(),
            [],
            $quiet,
            $localhost
        );
        ;
    }
public function runDrushCommand($command, $quiet = false, $localhost = false)
    {
        if ($command instanceof CommandBuilder) {
            $drush = $command;
        } else {
            $drush = new DrushCommand(null, $localhost);
            foreach (explode('&&', $command) as $string) {
                $drush->command($string);
            }
        }

        return $this->executeEngineCommand(
            $drush,
            $this->getPhpServiceName(),
            [],
            $quiet,
            $localhost
        );
        ;
    }
public function runDrushCommand ( $ command , $ quiet = false , $ localhost = false ) { if ( $ command instanceof CommandBuilder ) { $ drush = $ command ; } else { $ drush = new DrushCommand ( null , $ localhost ) ; foreach ( explode ( '&&' , $ command ) as $ string ) { $ drush -> command ( $ string ) ; } } return $ this -> executeEngineCommand ( $ drush , $ this -> getPhpServiceName ( ) , [ ] , $ quiet , $ localhost ) ; ; }
Run Drush command.

@param string|CommandBuilder $command
The drush command to execute.
@param bool $quiet
Silence command output.
@param bool $localhost
Run command on localhost.

@return ResultData
Run Drush command .