function rules_scheduler_drush_command

Implements hook_drush_command().

File

rules_scheduler/rules_scheduler.drush.inc, line 11

Code

function rules_scheduler_drush_command() {
    $items = array();
    $items['rules-scheduler-tasks'] = array(
        'description' => 'Check for scheduled tasks to be added to the queue.',
        'options' => array(
            'claim' => 'Optionally claim tasks from the queue to work on. Any value set will override the default time spent on this queue.',
        ),
        'drupal dependencies' => array(
            'rules',
            'rules_scheduler',
        ),
        'aliases' => array(
            'rusch',
        ),
        'examples' => array(
            'drush rusch' => 'Add scheduled tasks to the queue.',
            'drush rusch --claim' => 'Add scheduled tasks to the queue and claim items for the default amount of time.',
            'drush rusch --claim=30' => 'Add scheduled tasks to the queue and claim items for 30 seconds.',
        ),
    );
    return $items;
}