Commit 212dbe08 authored by drumm's avatar drumm Committed by Neil Drumm
Browse files

Platform aliases

parent 3140807c
...@@ -224,6 +224,14 @@ function drush_http_provision_named_context_save() { ...@@ -224,6 +224,14 @@ function drush_http_provision_named_context_save() {
$config = new provisionConfig_drushrc_alias(array(drush_get_option('hosting_name') => array('parent'))); $config = new provisionConfig_drushrc_alias(array(drush_get_option('hosting_name') => array('parent')));
$config->write(); $config->write();
} }
elseif (PROVISION_CONTEXT_PLATFORM) {
// Save platform alias
$config = new provisionConfig_drushrc_alias(array(drush_get_option('hosting_name') => array('parent', 'publish_path')));
$config->write();
}
elseif (PROVISION_CONTEXT_SITE) {
//todo
}
} }
function _provision_default_restart_cmd() { function _provision_default_restart_cmd() {
......
...@@ -44,15 +44,6 @@ function provision_save_platform_data() { ...@@ -44,15 +44,6 @@ function provision_save_platform_data() {
if (!drush_get_error()) { if (!drush_get_error()) {
$config = new provisionConfig_drushrc_platform(); $config = new provisionConfig_drushrc_platform();
$config->write(); $config->write();
// Save platform alias
$config = new provisionConfig_drushrc_alias(array(
drush_get_option('hosting_name') => array(
'parent',
'publish_path',
),
));
$config->write();
} }
} }
......
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