install.provision.inc

  1. 7.x-3.x dns/install.provision.inc
  2. 7.x-3.x example/install.provision.inc
  3. 7.x-3.x platform/install.provision.inc
  4. 7.x-3.x db/install.provision.inc
  5. 7.x-3.x http/install.provision.inc

Provision hooks for the install command

Functions

Namesort descending Description
drush_http_post_provision_install Implementation of hook_provision_post_install
drush_http_provision_install @file Provision hooks for the install command
drush_http_provision_install_rollback Implementation of hook_provision_install_rollback()

File

http/install.provision.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Provision hooks for the install command
  5. */
  6. function drush_http_provision_install() {
  7. d()->service('http')->create_config('site');
  8. }
  9. /**
  10. * Implementation of hook_provision_post_install
  11. */
  12. function drush_http_post_provision_install() {
  13. d()->service('http')->parse_configs();
  14. }
  15. /**
  16. * Implementation of hook_provision_install_rollback()
  17. *
  18. * Remove the apache configs if we fail to install the site.
  19. */
  20. function drush_http_provision_install_rollback() {
  21. d()->service('http')->delete_config('site');
  22. }