Commit 91ed4f23 authored by cweagans's avatar cweagans

Exclude command files from loading in drush 7.x in our aegir drushrc.php

parent 43280580
......@@ -25,6 +25,13 @@ class Provision_Config_Drushrc_Aegir extends Provision_Config_Drushrc {
}
$this->data['hosting_features'] = $enabled_features;
$this->data['drush_exclude'] = array();
foreach($enabled_features as $feature => $status) {
if ($status === '0') {
$this->data['drush_exclude'][] = $feature;
}
}
}
}
......@@ -5,4 +5,6 @@
*/
print "<?php \n\n\$options['hosting_features'] = ". var_export($hosting_features, TRUE) . ";\n";
print "\$options['exclude'] = ". var_export($drush_exclude, TRUE) . ";\n";
?>
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