You are here

function drush_platform_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_git/drush/platform_git.drush.inc, line 15
Provision/Drush hooks for git commands.

Code

function drush_platform_git_provision_verify_validate() {
  if (d()->type == 'platform' && d()->git_repository_url) {
    $platform = new Provision_PlatformGit();
    return $platform
      ->validateProvisionVerify();
  }
}