verify.provision.inc 548 Bytes
Newer Older
1 2
<?php

3
function drush_db_provision_verify_validate() {
4
  provision_service('db')->connect();
5 6 7 8 9 10 11
}

/**
 * Implementation of hook_provision_verify
 *
 * Can't be rolled back.
 */
12
function drush_db_provision_verify() {
13
  if (PROVISION_CONTEXT_PLATFORM) {
14
    provision_service('db')->verify();
15 16 17
  }
}

18
function drush_db_post_provision_verify() {
19
  if (PROVISION_CONTEXT_PLATFORM) {
20 21 22 23
    drush_unset_option('master_db', 'drupal');
  }
  if (PROVISION_CONTEXT_SERVER) {
    drush_set_option('master_db', drush_get_option('master_db'), 'home.drush');
24 25 26
  }
}