function drush_set_engine

8.0.x engines.inc drush_set_engine($type, $instance)
6.x engines.inc drush_set_engine($type, $instance)
7.x engines.inc drush_set_engine($type, $instance)
master engines.inc drush_set_engine($type, $instance)

Called by the Drush command (to cache the active engine instance.

See also

_drush_load_command_engines())

2 calls to drush_set_engine()
drush_load_command_engine in includes/engines.inc
Selects and loads an engine implementing the given type.
drush_load_engine in includes/engines.inc
Loads and validate an engine of the given type.

File

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

Code

function drush_set_engine($type, $instance) {
  drush_set_context($type . '_engine', $instance);
}