src/Robo/Commands/Vm/VmCommand.php
protected function createDrushAlias() {
    $this->logger->info("Adding a drush alias for the new VM...");
    if (!file_exists($this->projectDrushAliasesFile)) {
      $new_aliases = Expander::parse(file_get_contents($this->defaultDrupalVmDrushAliasesFile), $this->getConfig()->export());
    }
    else {
      $project_drush_aliases = Expander::parse(file_get_contents($this->projectDrushAliasesFile), $this->getConfig()->export());
      $default_drupal_vm_drush_aliases = Expander::parse(file_get_contents($this->defaultDrupalVmDrushAliasesFile), $this->getConfig()->export());
      $new_aliases = ArrayManipulator::arrayMergeRecursiveDistinct($project_drush_aliases, $default_drupal_vm_drush_aliases);
    }

    file_put_contents($this->projectDrushAliasesFile, Yaml::dump($new_aliases));
  }
protected function createDrushAlias() {
    $this->logger->info("Adding a drush alias for the new VM...");
    if (!file_exists($this->projectDrushAliasesFile)) {
      $new_aliases = Expander::parse(file_get_contents($this->defaultDrupalVmDrushAliasesFile), $this->getConfig()->export());
    }
    else {
      $project_drush_aliases = Expander::parse(file_get_contents($this->projectDrushAliasesFile), $this->getConfig()->export());
      $default_drupal_vm_drush_aliases = Expander::parse(file_get_contents($this->defaultDrupalVmDrushAliasesFile), $this->getConfig()->export());
      $new_aliases = ArrayManipulator::arrayMergeRecursiveDistinct($project_drush_aliases, $default_drupal_vm_drush_aliases);
    }

    file_put_contents($this->projectDrushAliasesFile, Yaml::dump($new_aliases));
  }
protected function createDrushAlias ( ) { $ this -> logger -> info ( "Adding a drush alias for the new VM..." ) ; if ( ! file_exists ( $ this -> projectDrushAliasesFile ) ) { $ new_aliases = Expander :: parse ( file_get_contents ( $ this -> defaultDrupalVmDrushAliasesFile ) , $ this -> getConfig ( ) -> export ( ) ) ; } else { $ project_drush_aliases = Expander :: parse ( file_get_contents ( $ this -> projectDrushAliasesFile ) , $ this -> getConfig ( ) -> export ( ) ) ; $ default_drupal_vm_drush_aliases = Expander :: parse ( file_get_contents ( $ this -> defaultDrupalVmDrushAliasesFile ) , $ this -> getConfig ( ) -> export ( ) ) ; $ new_aliases = ArrayManipulator :: arrayMergeRecursiveDistinct ( $ project_drush_aliases , $ default_drupal_vm_drush_aliases ) ; } file_put_contents ( $ this -> projectDrushAliasesFile , Yaml :: dump ( $ new_aliases ) ) ; }
Creates a new drush alias record.
Creates a new drush alias record .