Commit 052b2b63 authored by ergonlogic's avatar ergonlogic

Issue #2471805: Add hook to allow injecting options into clone deploy tasks.

parent 4528fcdd
...@@ -69,7 +69,15 @@ function drush_provision_drupal_provision_clone($new_name, $platform = null) { ...@@ -69,7 +69,15 @@ function drush_provision_drupal_provision_clone($new_name, $platform = null) {
drush_invoke_process('@none', 'provision-save', array($new_name), $options); drush_invoke_process('@none', 'provision-save', array($new_name), $options);
# note that we reset the aliases so they don't conflict with the original site # note that we reset the aliases so they don't conflict with the original site
provision_backend_invoke($new_name, 'provision-deploy', array(drush_get_option('backup_file')), array('old_uri' => d()->uri)); // Build an options array to pass to the deploy task. This allows injection
// of data into the deploy task. See: https://www.drupal.org/node/2471805
$deploy_options = array(
'old_uri' => d()->uri,
'strict' => 0,
);
drush_command_invoke_all_ref('provision_deploy_options_alter', $deploy_options, 'clone');
provision_backend_invoke($new_name, 'provision-deploy', array(drush_get_option('backup_file')), $deploy_options);
if (!drush_get_error()) { if (!drush_get_error()) {
provision_backend_invoke($new_name, 'provision-verify'); provision_backend_invoke($new_name, 'provision-verify');
......
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