function drush_platform_composer_git_provision_verify_validate in Aegir Deploy 7.3
Implements drush_HOOK_COMMAND_validate().
This needs to be called in the validate step so that it runs before the Makefile check and the check for a Drupal installation. Those operations, very inconveniently, run in the same function.
File
- modules/
platform_composer_git/ drush/ platform_composer_git.drush.inc, line 15 - Provision/Drush hooks for composer commands.
Code
function drush_platform_composer_git_provision_verify_validate() {
if (d()->type == 'platform' && d()->composer_git_project_url) {
$platform = new Provision_ComposerGitCreateProject();
return $platform
->validateProvisionVerify();
}
}