You are here

function acquia_purge_drush_command in Acquia Purge 7

Same name and namespace in other branches
  1. 6 acquia_purge.drush.inc \acquia_purge_drush_command()

Implements hook_drush_command().

File

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

Code

function acquia_purge_drush_command() {
  return array(
    // Define the 'ap-diagnosis' command.
    'ap-diagnosis' => array(
      'description' => 'Perform a series of diagnostic self-tests.',
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_DATABASE,
      'aliases' => array(
        'apd',
      ),
      'examples' => array(
        'drush apd',
      ),
    ),
    // Define the 'ap-domains' command.
    'ap-domains' => array(
      'description' => 'List all domains Acquia Purge will purge against.',
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_DATABASE,
      'aliases' => array(
        'apdo',
      ),
      'examples' => array(
        'drush apdo',
      ),
    ),
    // Define the 'ap-purge' command.
    'ap-purge' => array(
      'description' => 'Purge a specified path/paths from your balancers.',
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_DATABASE,
      'aliases' => array(
        'app',
      ),
      'arguments' => array(
        'paths' => 'The Drupal path to be purged, e.g.: "news" or "<front>", multiple separated paths are also accepted: "news contact node/1".',
      ),
      'examples' => array(
        'drush app "news"',
      ),
    ),
    // Define the 'ap-forget' command.
    'ap-forget' => array(
      'description' => 'Forget all scheduled purges and empty the queue.',
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_DATABASE,
      'aliases' => array(
        'apf',
      ),
      'examples' => array(
        'drush apf',
      ),
    ),
    // Define the 'ap-list' command.
    'ap-list' => array(
      'description' => 'List all the items that are in the queue.',
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_DATABASE,
      'aliases' => array(
        'apl',
      ),
      'examples' => array(
        'drush apl',
      ),
    ),
    // Define the 'ap-process' command.
    'ap-process' => array(
      'description' => 'Purge all queued items from the command line.',
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_DATABASE,
      'aliases' => array(
        'appr',
      ),
      'examples' => array(
        'drush appr',
      ),
    ),
  );
}