function drush_get_engine

8.0.x engines.inc drush_get_engine($type)
6.x engines.inc drush_get_engine($type)
7.x engines.inc drush_get_engine($type)
master engines.inc drush_get_engine($type)

Return the engine of the specified type that was loaded by the Drush command.

14 calls to drush_get_engine()
drush_get_outputformat in commands/core/outputformat.drush.inc
drush_make_process in commands/make/make.drush.inc
Drush callback: hidden file to process an individual project.
drush_make_update in commands/make/update.make.inc
Command callback for make-update.
drush_pm_download in commands/pm/download.pm.inc
Command callback. Download Drupal core or any project.
drush_pm_enable_find_project_from_extension in commands/pm/pm.drush.inc
Helper function for pm-enable.

... See full list

File

includes/engines.inc, line 541
The drush engines API implementation and helpers.

Code

function drush_get_engine($type) {
  return drush_get_context($type . '_engine', FALSE);
}