function drush_migrate_invoke_process in Migrate 6.2
Same name and namespace in other branches
- 7.2 migrate.drush.inc \drush_migrate_invoke_process()
2 calls to drush_migrate_invoke_process()
- drush_migrate_import in ./
migrate.drush.inc - Perform import on one or more migrations.
- drush_migrate_rollback in ./
migrate.drush.inc - Roll back one specified migration
File
- ./
migrate.drush.inc, line 257 - Drush support for the migrate module
Code
function drush_migrate_invoke_process($migrations = '') {
$args = drush_get_arguments();
$options = drush_migrate_get_options();
if (intval(DRUSH_MAJOR_VERSION) < 4) {
// @todo: use drush_backend_invoke_args() as per http://drupal.org/node/658420.
return drush_backend_invoke(implode(' ', $args), $options);
}
else {
// $args[0] is the command name, $args[1] is the list of migrations.
if (empty($migrations)) {
$command_args = array(
$args[1],
);
}
else {
$command_args = array(
$migrations,
);
}
$return = drush_invoke_process('@self', $args[0], $command_args, $options);
return $return;
}
}