src/Robo/Commands/Generate/AliasesCommand.php
public function generateAliasesAcquia() {
    $this->cloudConfDir = $_SERVER['HOME'] . '/.acquia';
    $this->setAppId();
    $this->cloudConfFileName = 'cloud_api.conf';
    $this->cloudConfFilePath = $this->cloudConfDir . '/' . $this->cloudConfFileName;
    $this->siteAliasDir = $this->getConfigValue('drush.alias-dir');

    $cloudApiConfig = $this->loadCloudApiConfig();
    $this->setCloudApiClient($cloudApiConfig['key'], $cloudApiConfig['secret']);

    $this->say("<info>Gathering site info from Acquia Cloud.</info>");
    $site = $this->cloudApiClient->application($this->appId);

    $error = FALSE;
    try {
      $this->getSiteAliases($site);
    }
    catch (\Exception $e) {
      $error = TRUE;
      $this->logger->error("Did not write aliases for $site->name. Error: " . $e->getMessage());
    }
    if (!$error) {
      $this->say("<info>Aliases were written, type 'drush sa' to see them.</info>");
    }
  }
public function generateAliasesAcquia() {
    $this->cloudConfDir = $_SERVER['HOME'] . '/.acquia';
    $this->setAppId();
    $this->cloudConfFileName = 'cloud_api.conf';
    $this->cloudConfFilePath = $this->cloudConfDir . '/' . $this->cloudConfFileName;
    $this->siteAliasDir = $this->getConfigValue('drush.alias-dir');

    $cloudApiConfig = $this->loadCloudApiConfig();
    $this->setCloudApiClient($cloudApiConfig['key'], $cloudApiConfig['secret']);

    $this->say("<info>Gathering site info from Acquia Cloud.</info>");
    $site = $this->cloudApiClient->application($this->appId);

    $error = FALSE;
    try {
      $this->getSiteAliases($site);
    }
    catch (\Exception $e) {
      $error = TRUE;
      $this->logger->error("Did not write aliases for $site->name. Error: " . $e->getMessage());
    }
    if (!$error) {
      $this->say("<info>Aliases were written, type 'drush sa' to see them.</info>");
    }
  }
public function generateAliasesAcquia ( ) { $ this -> cloudConfDir = $ _SERVER [ 'HOME' ] . '/.acquia' ; $ this -> setAppId ( ) ; $ this -> cloudConfFileName = 'cloud_api.conf' ; $ this -> cloudConfFilePath = $ this -> cloudConfDir . '/' . $ this -> cloudConfFileName ; $ this -> siteAliasDir = $ this -> getConfigValue ( 'drush.alias-dir' ) ; $ cloudApiConfig = $ this -> loadCloudApiConfig ( ) ; $ this -> setCloudApiClient ( $ cloudApiConfig [ 'key' ] , $ cloudApiConfig [ 'secret' ] ) ; $ this -> say ( "<info>Gathering site info from Acquia Cloud.</info>" ) ; $ site = $ this -> cloudApiClient -> application ( $ this -> appId ) ; $ error = FALSE ; try { $ this -> getSiteAliases ( $ site ) ; } catch ( \ Exception $ e ) { $ error = TRUE ; $ this -> logger -> error ( "Did not write aliases for $site->name. Error: " . $ e -> getMessage ( ) ) ; } if ( ! $ error ) { $ this -> say ( "<info>Aliases were written, type 'drush sa' to see them.</info>" ) ; } }
Generates new Acquia site aliases for Drush.

@command recipes:aliases:init:acquia

@aliases raia aliases
Generates new Acquia site aliases for Drush .