Commit 7cf1617d authored by helmo's avatar helmo

Add the working-copy option to hostmaster-migrate, similar to hostmaster-install

parent c0c49d23
......@@ -51,7 +51,12 @@ We are making the following assumptions:
'root' => $platform,
'makefile' => drush_get_option('makefile', dirname(__FILE__) . '/aegir.make'),
));
provision_backend_invoke($new_platform, 'provision-verify');
// propagate working-copy args downward
$options = array();
if (drush_get_option('working-copy')) {
$options['working-copy'] = 1;
}
provision_backend_invoke($new_platform, 'provision-verify', array(), $options);
drush_set_option('new_platform', $new_platform);
// exit if an error has occured.
if (drush_get_error()) {
......
......@@ -280,6 +280,7 @@ function provision_drush_command() {
'options' => array(
'http_service_type' => dt('Webserver type to configure (default: %webserver)', array('%webserver' => 'apache')),
'makefile' => dt('The makefile used to create the hostmaster platform (default: %makefile)', array('%makefile' => dirname(__FILE__). '/aegir.make')),
'working-copy' => dt('Keep VCS files when building the hostmaster platform using Drush make.')
),
);
......
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