Created
February 22, 2016 16:03
-
-
Save omega8cc/a1b480818965aa2ed3f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Provision verify command | |
* | |
* Disable an enabled and installed site | |
*/ | |
function drush_provision_drupal_provision_verify_validate() { | |
if (d()->type === 'site') { | |
drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_SITE); | |
provision_prepare_environment(); | |
_provision_drupal_create_settings_file(); | |
provision_drupal_push_site(); | |
drush_errors_on(); | |
$rrFile = d()->root . '/sites/all/modules/registry-rebuild.ini'; | |
if (provision_file()->exists($rrFile)->status()) { | |
if (drush_drupal_major_version() < 8 && d()->profile != 'hostmaster') { | |
provision_backend_invoke(d()->name, 'registry-rebuild'); | |
drush_log(dt('Completed registry-rebuild without --no-cache-clear option')); | |
} | |
} | |
drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_FULL); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment