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()

Used by dl and updatecode commands to determine how to download/checkout new projects and acquire updates to projects.

File

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

Code

function pm_drush_engine_package_handler() {
  return array(
    'wget' => array(),
    'cvs' => array(
      'options' => array(
        'package-handler=cvs' => 'Use CVS to checkout and update projects.',
      ),
      'sub-options' => array(
        'package-handler=cvs' => array(
          'cvsparams' => 'Add options to the `cvs` program',
          'cvsmethod' => 'Force cvs updates or checkouts (checkout is default unless the directory is managed by a supported version control system).',
          'cvscredentials' => 'A username and password that is sent for cvs checkout command. Defaults to anonymous:anonymous',
        ),
      ),
      'examples' => array(
        'drush [command] cck --cvscredentials=\"name:password\"' => 'Checkout should use these credentials.',
        'drush [command] cck --cvsparams=\"-C\"' => 'Overwrite all local changes (Quotes are required).',
        'drush [command] cck --cvsmethod=update' => 'Will update the project, and try to merge changes, rather than overwriting them. Any conflicts will need to be resolved manually.',
      ),
    ),
    'git_drupalorg' => array(
      'options' => array(
        'package-handler=git_drupalorg' => 'Use git.drupal.org to checkout and update projects.',
      ),
      'sub-options' => array(
        'package-handler=git_drupalorg' => 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.',
          'gitsubmoduleaddparams' => 'Add options to the `git submodule add` command.',
          'cache' => 'Use a local git cache and clone projects using --reference.',
        ),
      ),
    ),
  );
}