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
3140807c
Commit
3140807c
authored
May 06, 2010
by
drumm
Committed by
Neil Drumm
May 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up alias saving
parent
ed743c18
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
9 deletions
+8
-9
db/db.drush.inc
db/db.drush.inc
+1
-1
http/http.drush.inc
http/http.drush.inc
+1
-1
provision.config.inc
provision.config.inc
+1
-1
provision.drush.inc
provision.drush.inc
+4
-6
provision.service.inc
provision.service.inc
+1
-0
No files found.
db/db.drush.inc
View file @
3140807c
...
...
@@ -303,7 +303,7 @@ class provisionService_db extends provisionService {
* Write out server's drushrc alias file.
*/
function
write_alias
()
{
return
array
(
drush_get_option
(
'init_db'
)
=>
array
(
'master_db'
));
return
array
(
drush_get_option
(
'init_db'
)
=>
array
(
'init_db'
,
'master_db'
));
}
}
...
...
http/http.drush.inc
View file @
3140807c
...
...
@@ -122,6 +122,6 @@ class provisionService_http extends provisionService {
* Write out server's drushrc alias file.
*/
function
write_alias
()
{
return
array
(
drush_get_option
(
'init_http'
)
=>
array
(
'web_host'
,
'web_ports'
,
'web_group'
,
'restart_cmd'
));
return
array
(
drush_get_option
(
'init_http'
)
=>
array
(
'init_http'
,
'web_host'
,
'web_ports'
,
'web_group'
,
'restart_cmd'
));
}
}
provision.config.inc
View file @
3140807c
...
...
@@ -167,7 +167,7 @@ class provisionConfig_drushrc_alias extends provisionConfig_drushrc {
}
function
filename
()
{
return
drush_get_option
(
'alias-path'
,
drush_server_home
()
.
'/.drush/aliases/'
)
.
$this
->
data
[
'aliasname'
];
return
drush_get_option
(
'alias-path'
,
drush_server_home
()
.
'/.drush/aliases
'
)
.
'
/'
.
$this
->
data
[
'aliasname'
]
.
'.alias.drushrc.php'
;
}
}
...
...
provision.drush.inc
View file @
3140807c
...
...
@@ -211,19 +211,17 @@ function drush_provision_hostmaster_make($platform) {
function
drush_http_provision_named_context_save
()
{
if
(
PROVISION_CONTEXT_SERVER
)
{
$parents
=
array
();
$contexts
=
array
(
drush_get_option
(
'hosting_name'
)
=>
array
(
'parents'
),
);
foreach
(
provision_service
(
'all'
)
as
$service
)
{
foreach
(
$service
->
write_alias
()
as
$key
=>
$value
)
{
$parents
[]
=
drush_get_option
(
'hosting_name'
)
.
'-'
.
$key
;
$contexts
[
drush_get_option
(
'hosting_name'
)
.
'-'
.
$key
]
=
$value
;
$config
=
new
provisionConfig_drushrc_alias
(
array
(
drush_get_option
(
'hosting_name'
)
.
'-'
.
$key
=>
$value
));
$config
->
write
();
}
}
drush_set_option
(
'parent
s
'
,
'@'
.
implode
(
',@'
,
$parents
));
$config
=
new
provisionConfig_drushrc_alias
(
$contexts
);
drush_set_option
(
'parent'
,
'@'
.
implode
(
',@'
,
$parents
));
$config
=
new
provisionConfig_drushrc_alias
(
array
(
drush_get_option
(
'hosting_name'
)
=>
array
(
'parent'
))
);
$config
->
write
();
}
}
...
...
provision.service.inc
View file @
3140807c
...
...
@@ -84,6 +84,7 @@ class provisionService {
}
function
write_alias
()
{
return
array
();
}
}
...
...
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