Commit 35f887c0 authored by Adrian Rossouw's avatar Adrian Rossouw

add web_server field, and make the factory pick up the cli fields.

parent 1490988f
......@@ -38,7 +38,7 @@ function & d($name = NULL, $root_object = FALSE) {
function provision_environment_factory($name) {
$classes = array('provisionServer', 'provisionPlatform', 'provisionSite');
$options = drush_sitealias_get_record($name);
$options = array_merge(drush_sitealias_get_record($name), drush_get_context('stdin'), drush_get_context('options'));
if (provisionServer::evaluate($options)) {
$classname = array_shift($classes);
......@@ -284,8 +284,9 @@ class provisionPlatform extends provisionServer {
// publish path can really be removed ...
$this->setProperty('publish_path', $this->root);
$this->setProperty('sites_path', $this->root . '/sites');
$this->setProperty('web_server');
$this->is_oid('web_server');
}
}
......
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