Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/2737785 local drushrc #4

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions Provision/Config/Drushrc/Aegir.php
Expand Up @@ -24,6 +24,7 @@ function load_data() {
$enabled_features[$name] = $info['enabled'];
}

$this->data['aegir_root'] = DRUPAL_ROOT;
$this->data['hosting_features'] = $enabled_features;

$this->data['drush_exclude'] = array();
Expand Down
8 changes: 8 additions & 0 deletions Provision/Config/Drushrc/provision_drushrc_aegir.tpl.php
Expand Up @@ -5,6 +5,11 @@
*/
print "<?php \n\n";

print "# !!!WARNING!!! This file is re-generated on each verify of the hostmaster site.\n";
print "# Any changes tou make to this file will thus soon be lost. Instead, create a\n";
print "# file called 'local.drushrc.php' in the same directory as this one (i.e.\n";
print "# '$aegir_root/.drush/'), and add any custom configuration there.\n";

print "# A list of Aegir features and their enabled status.\n";
print "\$options['hosting_features'] = ". var_export($hosting_features, TRUE) . ";\n\n";

Expand All @@ -14,4 +19,7 @@
print "# A list of paths that drush should include even when working outside\n";
print "# the context of the hostmaster site.\n";
print "\$options['include'] = ". var_export($drush_include, TRUE) . ";\n";

print "# Local non-aegir-generated additions.";
print "@include_once(dirname(__FILE__) . '/local.drushrc.php');";
?>