function drush_example_provision_install_rollback

7.x-3.x 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/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');
}