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

// $Id$

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

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

20 21 22 23 24 25 26 27
/**
 * 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');
}