install.provision.inc 537 Bytes
Newer Older
1 2 3 4 5 6 7
<?php


/**
 * @file
 *   Provision hooks for the install command
 */
8 9 10
function drush_http_provision_install() {
  d()->service('http')->create_config('site');
}
11 12 13 14

/**
 * Implementation of hook_provision_post_install
 */
15
function drush_http_post_provision_install() {
16
  d()->service('http')->parse_configs();
17 18
}

19 20 21 22 23 24 25 26
/**
 * Implementation of hook_provision_install_rollback()
 *
 * Remove the apache configs if we fail to install the site.
 */
function drush_http_provision_install_rollback() {
  d()->service('http')->delete_config('site');
}