function drush_platform_composer_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/ drush/ platform_composer.drush.inc, line 15 - Provision/Drush hooks for composer commands.
Code
function drush_platform_composer_provision_verify_validate() {
if (d()->type == 'platform' && d()->composer_project_package) {
$platform = new Provision_ComposerCreateProject();
$success = $platform
->validateProvisionVerify();
if (!$success) {
$platform
->postProvisionDelete();
}
}
}