Skip to content

Commit

Permalink
Fixes #647: Include Acquia cloud drush commands with BLT provided drush.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Nov 21, 2016
1 parent 7fc7ae4 commit c60036b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion phing/files/deploy-exclude.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
/docroot/sites/*/private
/docroot/themes/contrib
/drush/contrib
/drush.wrapper
/README.md
/readme
/sites/development.services.yml
Expand Down
2 changes: 1 addition & 1 deletion template/drush.wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ if [ ! -f ${DIR}/vendor/drush/drush/drush.launcher ]; then
exit 1
fi

vendor/drush/drush/drush.launcher --config=${DIR}/drush/drushrc.php --alias-path=${DIR}/drush/site-aliases --include=${DIR}/drush "$@"
vendor/drush/drush/drush.launcher --config=${DIR}/drush/drushrc.php --alias-path=${DIR}/drush/site-aliases "$@"
8 changes: 8 additions & 0 deletions template/drush/drushrc.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@
$options['uri'] = $_ENV['TUGBOAT_URL'];
}

// Include current directory. Will add policy.drush.inc.
$options['include'][] = __DIR__;

// If we are on Acquia Cloud, add Acquia specific commands.
if (file_exists('/usr/local/drush8/commands')) {
$options['include'][] = '/usr/local/drush8/commands';
}

// Specify the base_url that should be used when generating links
# $options['l'] = 'http://example.com/subdir';

Expand Down

0 comments on commit c60036b

Please sign in to comment.