You are here

function drush_composer_manager_composer_json_rebuild in Composer Manager 7.2

Same name and namespace in other branches
  1. 6.2 composer_manager.drush.inc \drush_composer_manager_composer_json_rebuild()
  2. 6 composer_manager.drush.inc \drush_composer_manager_composer_json_rebuild()
  3. 7 composer_manager.drush.inc \drush_composer_manager_composer_json_rebuild()

Rebuilds the consolidated composer.json file.

File

./composer_manager.drush.inc, line 111
Drush hook implementations for the Composer Manager module.

Code

function drush_composer_manager_composer_json_rebuild() {
  $success = composer_manager_write_file();
  if ($success) {
    drush_log(dt('Completed building composer.json file.'), 'ok');
    return TRUE;
  }
  else {
    return drush_set_error(dt('Error building composer.json file.'));
  }
}