diff --git a/db/db.drush.inc b/db/db.drush.inc index 9084cadbe49a144d23b76e5879f6cb52ca9cb973..6c7f709a4643c5eef4ea14766ce099b11bfc857e 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 fe967ea9318b4d89ab0a4cc7ad112791dc92d373..1fecf548d19e94c023e12bfb18bea19e679e2e72 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 3a450623cb2395002e9884db5a8374fcea47bd04..8239daf96d133d5e9aa9120e0fbae8dc7fe65a20 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.'),