function _drush_cm_export_remote_configuration_before_merge

7.x config.drush.inc _drush_cm_export_remote_configuration_before_merge(&$merge_info)
1 call to _drush_cm_export_remote_configuration_before_merge()

File

commands/core/config.drush.inc, line 897
Provides Configuration Management commands.

Code

function _drush_cm_export_remote_configuration_before_merge(&$merge_info) {
  // Run config-export on the live site.
  $values = drush_invoke_process($merge_info['live-site'], 'config-export', array($merge_info['config-label']), $merge_info['export_options']);
  if ($values['error_status']) {
    return drush_set_error('DRUSH_CONFIG_MERGE_CANNOT_EXPORT', dt("Could not export configuration for site !site", array('!site' => $merge_info['live-site'])));
  }
  // After we run config-export, we remember the path to the directory
  // where the exported configuration was written.
  if (!empty($values['object']) && ($merge_info['temp'])) {
    $merge_info['remote_configuration_path'] = $values['object'];
    // $merge_info['rsync_options']['remove-source-files'] = TRUE;
  }
}