You are here

function services_client_drush_command in Services Client 7.2

Same name and namespace in other branches
  1. 7 services_client.drush.inc \services_client_drush_command()

Implementation of hook_drush_commands()

File

./services_client.drush.inc, line 11
Services client drush integration

Code

function services_client_drush_command() {
  $items = array();
  $items['services-client-process-queue'] = array(
    'description' => "Process entries from queue",
    'options' => array(
      'time' => 'Number of seconds that process should run',
      'sleep' => 'Sleep time in seconds when there is nothing to process. Default is 1 second.',
      'retries' => 'Number of retires before data are sent to general error handler',
    ),
    'examples' => array(
      'drush sc-pq' => 'Process queued synchronizations',
    ),
    'aliases' => array(
      'sc-pq',
    ),
  );
  $items['services-client-migrate-hooks'] = array(
    'description' => "Migrate old hooks to new event system",
    'options' => array(
      'hook' => 'Optionally provide hook name to limit',
    ),
    'examples' => array(
      'drush sc-mh' => "Migrate existing hooks to new event system",
    ),
    'aliases' => array(
      'sc-mh',
    ),
  );
  return $items;
}