You are here

function drush_acquia_purge_ap_domains in Acquia Purge 6

Same name and namespace in other branches
  1. 7 acquia_purge.drush.inc \drush_acquia_purge_ap_domains()

List all detected domain names that Acquia Purge will purge.

File

./acquia_purge.drush.inc, line 113
Drush integration providing common maintenance tasks.

Code

function drush_acquia_purge_ap_domains() {

  // Stop invocation if we are not detecting Acquia Cloud heuristics.
  if (!_acquia_purge_are_we_on_acquiacloud()) {
    return drush_set_error("You must be on Acquia Cloud to use Acquia Purge.");
  }
  foreach (_acquia_purge_get_domains() as $domain) {
    printf("%s\n", $domain);
  }
}