Commit 16db51a6 authored by drumm's avatar drumm Committed by Neil Drumm

Remove boilerplate code and get db server verify working

parent 80d2cf6f
<?php
function drush_db_provision_verify_validate() {
provision_service('db')->connect();
}
/**
* Implementation of hook_provision_verify
*
* Can't be rolled back.
*/
function drush_db_provision_verify() {
if (PROVISION_CONTEXT_SERVER) {
provision_service('db')->verify();
}
}
<?php
function drush_http_provision_verify() {
provision_service('http')->verify();
}
function drush_http_post_provision_verify() {
if (PROVISION_CONTEXT_SERVER) {
drush_set_option('master_url', drush_get_option('master_url'), 'user');
drush_set_option('script_user', drush_get_option('script_user'), 'user');
drush_set_option('backup_path', drush_get_option('backup_path'), 'user');
drush_set_option('config_path', drush_get_option('config_path'), 'user');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment