You are here

function drush_example_provision_install_rollback in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 example/example_service/drush/install.provision.inc \drush_example_provision_install_rollback()

Implementation of drush_hook_provision_install_rollback.

All drush invoke hooks allow you to recover if drush_set_error() was set in the previously called hooks.

By defining a _rollback variant, you can cleanly handle cases where issues occured, in this case deleting the config file created in the previous step.

File

example/example_service/drush/install.provision.inc, line 65
Drush invoke API hooks for the 'provision-install' command.

Code

function drush_example_provision_install_rollback() {
  d()
    ->service('example')
    ->delete_config('site');
}