function pm_drush_engine_package_handler

8.0.x pm.drush.inc pm_drush_engine_package_handler()
6.x pm.drush.inc pm_drush_engine_package_handler()
7.x pm.drush.inc pm_drush_engine_package_handler()
3.x pm.drush.inc pm_drush_engine_package_handler()
4.x pm.drush.inc pm_drush_engine_package_handler()
5.x pm.drush.inc pm_drush_engine_package_handler()
master pm.drush.inc pm_drush_engine_package_handler()

Implements hook_drush_engine_ENGINE_TYPE().

Package handler engine is used by pm-download and pm-updatecode commands to determine how to download/checkout new projects and acquire updates to projects.

Related topics

File

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

Code

function pm_drush_engine_package_handler() {
  return array(
    'wget' => array(
      'description' => 'Download project packages using wget or curl.',
      'options' => array(
        'no-md5' => 'Skip md5 validation of downloads.',
      ),
    ),
    'git_drupalorg' => array(
      'description' => 'Use git.drupal.org to checkout and update projects.',
      'options' => array(
        'gitusername' => 'Your git username as shown on user/[uid]/edit/git. Typically, this is set this in drushrc.php. Omitting this prevents users from pushing changes back to git.drupal.org.',
        'gitsubmodule' => 'Use git submodules for checking out new projects. Existing git checkouts are unaffected, and will continue to (not) use submodules regardless of this setting.',
        'gitcheckoutparams' => 'Add options to the `git checkout` command.',
        'gitcloneparams' => 'Add options to the `git clone` command.',
        'gitfetchparams' => 'Add options to the `git fetch` command.',
        'gitpullparams' => 'Add options to the `git pull` command.',
        'gitinfofile' => 'Inject version info into each .info file.',
      ),
      'sub-options' => array(
        'gitsubmodule' => array(
          'gitsubmoduleaddparams' => 'Add options to the `git submodule add` command.',
        ),
      ),
    ),
  );
}