Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
provision
Commits
2bc6584e
Commit
2bc6584e
authored
May 25, 2010
by
drumm
Committed by
Neil Drumm
May 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do longer keep the server/platform/site context in aliases
parent
04ec33c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
provision.drush.inc
provision.drush.inc
+3
-3
No files found.
provision.drush.inc
View file @
2bc6584e
...
...
@@ -215,7 +215,7 @@ function drush_provision_hostmaster_make($platform) {
function
drush_http_provision_named_context_save
()
{
if
(
PROVISION_CONTEXT_SERVER
)
{
$options
=
array
(
'provision-context'
,
'provision-host'
,
'provision-user'
,
'config_path'
,
'backup_path'
);
$options
=
array
(
'provision-host'
,
'provision-user'
,
'config_path'
,
'backup_path'
);
foreach
(
provision_service
(
'all'
)
as
$service
)
{
$options
=
array_merge
(
$options
,
$service
->
write_alias
());
}
...
...
@@ -224,11 +224,11 @@ function drush_http_provision_named_context_save() {
}
elseif
(
PROVISION_CONTEXT_PLATFORM
)
{
drush_set_option
(
'platform-name'
,
preg_replace
(
'/^platform_/'
,
''
,
drush_get_option
(
'hosting_name'
)));
$config
=
new
provisionConfig_drushrc_alias
(
drush_get_option
(
'hosting_name'
),
array
(
'provision-http-server'
,
'provision-context'
,
'root'
,
'platform-name'
));
$config
=
new
provisionConfig_drushrc_alias
(
drush_get_option
(
'hosting_name'
),
array
(
'provision-http-server'
,
'root'
,
'platform-name'
));
$config
->
write
();
}
elseif
(
PROVISION_CONTEXT_SITE
)
{
$config
=
new
provisionConfig_drushrc_alias
(
drush_get_option
(
'hosting_name'
),
array
(
'provision-db-server'
,
'provision-platform'
,
'provision-context'
,
'uri'
,
'site_port'
,
'site_id'
,
'language'
,
'client_email'
));
$config
=
new
provisionConfig_drushrc_alias
(
drush_get_option
(
'hosting_name'
),
array
(
'provision-db-server'
,
'provision-platform'
,
'uri'
,
'site_port'
,
'site_id'
,
'language'
,
'client_email'
));
$config
->
write
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment