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

Platform aliases

parent 3140807c
......@@ -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->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() {
......
......@@ -44,15 +44,6 @@ function provision_save_platform_data() {
if (!drush_get_error()) {
$config = new provisionConfig_drushrc_platform();
$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