function drush_make_process

8.0.x make.drush.inc drush_make_process($directory)
6.x make.drush.inc drush_make_process($directory)
7.x make.drush.inc drush_make_process($directory)
5.x make.drush.inc drush_make_process($directory)
master make.drush.inc drush_make_process($directory)

Drush callback: hidden file to process an individual project.

Parameters

string $directory: Directory where the project is being built.

File

commands/make/make.drush.inc, line 404
Drush Make commands.

Code

function drush_make_process($directory) {
  drush_get_engine('release_info');

  // Set the temporary directory.
  make_tmp(TRUE, $directory);
  if (!$projects_location = drush_get_option('projects-location')) {
    return drush_set_error('MAKE-PROCESS', dt('No projects passed to drush_make_process'));
  }
  $projects = json_decode(file_get_contents($projects_location), TRUE);
  $manifest = drush_get_option('manifest', array());

  foreach ($projects as $project) {
    if ($instance = DrushMakeProject::getInstance($project['type'], $project)) {
      $instance->setManifest($manifest);
      $instance->make();
    }
    else {
      make_error('PROJECT-TYPE', dt('Non-existent project type %type on project %project.', array('%type' => $project['type'], '%project' => $project['name'])));
    }
  }
}