Skip to content

Commit

Permalink
Adding drush policy file to prevent drush9 usage on Acquia Cloud.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Oct 4, 2016
1 parent 8bc088e commit e1da874
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions template/drush/policy.drush.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

/**
* Implements hook_drush_sitealias_alter().
*
* Alter alias record data in code.
*/
function policy_drush_sitealias_alter(&$alias_record) {
if ($alias_record['path-aliases']['%drush-script'] == 'drush9') {
// Acquia Cloud does not currently support drush9.
$alias_record['path-aliases']['%drush-script'] = 'drush8';
}
}

0 comments on commit e1da874

Please sign in to comment.