function pm_drush_engine_release_info

8.0.x pm.drush.inc pm_drush_engine_release_info()
6.x pm.drush.inc pm_drush_engine_release_info()
7.x pm.drush.inc pm_drush_engine_release_info()
5.x pm.drush.inc pm_drush_engine_release_info()
master pm.drush.inc pm_drush_engine_release_info()

Implements hook_drush_engine_ENGINE_TYPE().

Release info engine is used by several pm commands to obtain releases info from Drupal's update service or external sources.

Related topics

File

commands/pm/pm.drush.inc, line 1776
The drush Project Manager

Code

function pm_drush_engine_release_info() {
  return array(
    'updatexml' => array(
      'description' => 'Drush release info engine for update.drupal.org and compatible services.',
      'options' => array(
        'source' => 'The base URL which provides project release history in XML. Defaults to http://updates.drupal.org/release-history.',
        'dev' => 'Work with development releases solely.',
      ),
      'sub-options' => array(
        'cache' => array(
          'cache-duration-releasexml' => 'Expire duration (in seconds) for release XML. Defaults to 86400 (24 hours).',
        ),
        'select' => array(
          'all' => 'Shows all available releases instead of a short list of recent releases.',
        ),
      ),
      'class' => 'Drush\UpdateService\ReleaseInfo',
    ),
  );
}