function drush_example_provision_install_rollback in Hosting 7.4
Same name and namespace in other branches
- 7.3 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');
}