Commit 4f93d89a authored by drumm's avatar drumm Committed by Neil Drumm

move server options from verify to new named context save

parent 2567dd25
......@@ -36,16 +36,17 @@ function db_drush_init($url = null) {
// this is where we generate the db service object.
}
function db_drush_exit() {
function drush_db_provision_named_context_save() {
if (PROVISION_CONTEXT_SERVER) {
provision_service('db')->write_alias();
}
}
function db_drush_exit() {
// determine how to close it too.
provision_service('db')->close();
}
function db_drush_help($section) {
switch ($section) {
case 'error:PROVISION_CREATE_DB_FAILED' :
......
......@@ -25,7 +25,7 @@ function http_drush_init($url = null) {
}
}
function http_drush_exit() {
function drush_http_provision_named_context_save() {
if (PROVISION_CONTEXT_SERVER) {
provision_service('http')->write_alias();
}
......
......@@ -71,7 +71,11 @@ function provision_drush_init() {
* Implementation of hook_drush_command().
*/
function provision_drush_command() {
$items['provision-named-context-save'] = array(
'arguments' => array(),
'description' => dt('Save Drush aliases'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
);
$items['provision-install'] = array(
'arguments' => array('domain.com' => dt('The domain of the site to install.')),
'description' => dt('Provision a new site using the provided data.'),
......
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