src/Robo/Tasks/DrushTask.php
protected function setupExecution() {
    $this->setOptionsForLastCommand();
    $this->setGlobalOptions();

    $globalOptions = $this->arguments;

    foreach ($this->commands as $commandNumber => $command) {
      if ($this->alias) {
        $command = "@{$this->alias} {$command}";
      }

      $options = isset($this->options[$commandNumber]) ? $this->options[$commandNumber] : '';

      // Add in global options, as well as those set via option method.
      $command = $command . $options . $globalOptions;

      $this->exec($command)
        ->dir($this->dir);
    }
  }
protected function setupExecution() {
    $this->setOptionsForLastCommand();
    $this->setGlobalOptions();

    $globalOptions = $this->arguments;

    foreach ($this->commands as $commandNumber => $command) {
      if ($this->alias) {
        $command = "@{$this->alias} {$command}";
      }

      $options = isset($this->options[$commandNumber]) ? $this->options[$commandNumber] : '';

      // Add in global options, as well as those set via option method.
      $command = $command . $options . $globalOptions;

      $this->exec($command)
        ->dir($this->dir);
    }
  }
protected function setupExecution ( ) { $ this -> setOptionsForLastCommand ( ) ; $ this -> setGlobalOptions ( ) ; $ globalOptions = $ this -> arguments ; foreach ( $ this -> commands as $ commandNumber => $ command ) { if ( $ this -> alias ) { $ command = "@{$this->alias} {$command}" ; } $ options = isset ( $ this -> options [ $ commandNumber ] ) ? $ this -> options [ $ commandNumber ] : '' ; // Add in global options, as well as those set via option method. $ command = $ command . $ options . $ globalOptions ; $ this -> exec ( $ command ) -> dir ( $ this -> dir ) ; } }
Adds drush commands with their corresponding options to stack.
Adds drush commands with their corresponding options to stack .