Commit 1b8cf5de authored by drumm's avatar drumm Committed by Neil Drumm

Save remote info to web servers. Needs http://drupal.org/node/795386. Does not...

Save remote info to web servers. Needs http://drupal.org/node/795386. Does not work well with web server restart commands, or other options, with spaces in them. Escaping a command within a command within a command correctly is aparently hard.
parent 56693824
......@@ -99,6 +99,10 @@ class provisionService_http extends provisionService {
* Write out server's drushrc alias file.
*/
function write_alias() {
return array(drush_get_option('provision-service-http') => array('provision-service-http', 'web_host', 'web_ports', 'web_group', 'restart_cmd'));
drush_set_option('path-aliases', array(
'%drush-script' => drush_get_option('drush_path'),
));
drush_set_option('remote-host', drush_get_option('web_host'));
return array(drush_get_option('provision-service-http') => array('provision-service-http', 'remote-host', 'remote-user', 'path-aliases', 'web_host', 'web_ip', 'web_ports', 'web_group', 'restart_cmd'));
}
}
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