function pm_drush_engine_package_handler
| 6.x pm.drush.inc | pm_drush_engine_package_handler() |
| 5.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() |
Used by dl and updatecode commands to determine how to download/checkout new projects and acquire updates to projects.
Related topics
File
- commands/
pm/ pm.drush.inc, line 1410 - The drush Project Manager
Code
function pm_drush_engine_package_handler() {
return array(
'wget' => array(
'description' => 'Download project packages using wget or curl.',
),
'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.',
),
),
),
);
}