You are here

function deploy_plan_cleanup in Deploy - Content Staging 6

Clean up after ourselves once a deployment is done.

5 calls to deploy_plan_cleanup()
comment_deploy_operations_add_now_form_submit in modules/comment_deploy/comment_deploy.pages.inc
Submit handler for comment_deploy_operations_add_now_form().
deploy_plan_push_form_submit in ./deploy.module
Submit callback for deploy_plan_push_form()
drush_deploy in includes/deploy.drush.inc
Deploy a plan from the command line with drush.
node_deploy_operations_add_now_form_submit in modules/node_deploy/node_deploy.pages.inc
Submit handler for node_deploy_operations_add_now_form().
taxonomy_vocabulary_deploy_add_form_submit in modules/taxonomy_deploy/taxonomy_deploy.pages.inc
Submit handler for taxonomy_vocabulary_deploy_add_form().
1 string reference to 'deploy_plan_cleanup'
deploy_push_batch in ./deploy.module
Batch API callback for the deployment push process.

File

./deploy.module, line 817
Deployment API which enables modules to deploy items between servers.

Code

function deploy_plan_cleanup() {

  // clear remote cache
  deploy_send(array(
    'system.cacheClearAll',
  ), array());

  // Grab the pid so we can pass it to the post deploy hook.
  $pid = variable_get('deploy_pid', '');
  $server = variable_get('deploy_server', '');
  deploy_auth_invoke($server['auth_type'], 'cleanup callback');
  variable_del('deploy_server');
  variable_del('deploy_pid');
  variable_del('deploy_log_id');
  variable_del('deploy_fatal');

  // Allow other modules to do post-deployment tasks.
  module_invoke_all('deploy_post_plan', $pid);
}