From 4f93d89af408afb82d484e51a65b516c0e153410 Mon Sep 17 00:00:00 2001 From: Neil Drumm <drumm@delocalizedham.com> Date: Wed, 5 May 2010 19:52:02 -0700 Subject: [PATCH] move server options from verify to new named context save --- db/db.drush.inc | 7 ++++--- http/http.drush.inc | 2 +- provision.drush.inc | 6 +++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/db/db.drush.inc b/db/db.drush.inc index 9084cadbe..6c7f709a4 100644 --- a/db/db.drush.inc +++ b/db/db.drush.inc @@ -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' : diff --git a/http/http.drush.inc b/http/http.drush.inc index fe967ea93..1fecf548d 100644 --- a/http/http.drush.inc +++ b/http/http.drush.inc @@ -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(); } diff --git a/provision.drush.inc b/provision.drush.inc index 3a450623c..8239daf96 100644 --- a/provision.drush.inc +++ b/provision.drush.inc @@ -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.'), -- GitLab