Commit bd2f8559 authored by Steven Jones's avatar Steven Jones

Issue #1260066 by Steven Jones: Added Allow use of the working copy option...

Issue #1260066 by Steven Jones: Added Allow use of the working copy option when creating a platform.
parent 67e3522a
......@@ -18,11 +18,13 @@ class Provision_Context_platform extends Provision_Context {
'--server' => 'platform: drush backend server; default @server_master',
'--web_server' => 'platform: web server hosting the platform; default @server_master',
'--makefile' => 'platform: drush makefile to use for building the platform if it doesn\'t already exist',
'--make_working_copy' => 'platform: Specifiy TRUE to build the platform with the Drush make --working-copy option.',
);
}
function init_platform() {
$this->setProperty('root');
$this->setProperty('makefile', '');
$this->setProperty('make_working_copy', FALSE);
}
}
......@@ -50,7 +50,7 @@ function drush_provision_drupal_pre_provision_verify() {
drush_log(dt("Platform path does not exist, fetching from drush makefile"));
$options = array('root' => null, 'uri' => null);
// propagate working-copy args downward
if (drush_get_option('working-copy')) {
if (drush_get_option('working-copy') || !empty(d()->make_working_copy)) {
$options['working-copy'] = 1;
}
$options[] = d()->makefile;
......
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