You are here

function acsf_drush_command in Acquia Cloud Site Factory Connector 8

Implements hook_drush_command().

File

./acsf.drush.inc, line 18
Provides drush commands for site related operations.

Code

function acsf_drush_command() {
  return [
    'acsf-build-registry' => [
      'description' => dt('Rebuilds the ACSF registry.'),
    ],
    'acsf-site-scrub' => [
      'description' => dt('Scrubs sensitive information regarding ACSF.'),
    ],
    'acsf-site-sync' => [
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_DATABASE,
      'description' => dt('Synchronize data with the Factory.'),
      'options' => [
        'data' => dt('A base64 encoded php array describing the site generated from the Factory.'),
      ],
    ],
    'acsf-get-factory-creds' => [
      'description' => dt('Print credentials retrieved from the factory.'),
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT,
    ],
    'go-offline' => [
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
      'description' => dt('Set a site offline.'),
      'aliases' => [
        'go-off',
      ],
    ],
    'go-online' => [
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
      'description' => dt('Set a site online.'),
      'aliases' => [
        'go-on',
      ],
    ],
    'report-complete-async-process' => [
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT,
      'description' => dt('Send notice back to the Factory when a process completes.'),
      'options' => [
        'data' => dt('Serialized PHP data regarding the caller.'),
      ],
    ],
    'acsf-version-get' => [
      'description' => dt('Fetches the version of the acsf moduleset.'),
      'arguments' => [
        'path' => dt('The path to the acsf moduleset.'),
      ],
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT,
    ],
    'acsf-install-task-get' => [
      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT,
      'description' => dt('Returns the last installation task that was completed.'),
    ],
  ];
}