function provision_drush_init

7.x-3.x provision.drush.inc provision_drush_init()

Implements hook_drush_init().

Related topics

File

./provision.drush.inc, line 51
Provision Drush commands.

Code

function provision_drush_init() {
  // try to load the drush siterecoard (the "alias") into d
  // if a name is provided, it's because we're in provision-save so we
  // need to specify it because it's not loaded by drush
  $hash_name = drush_get_option('#name') ? '#name' : 'name';
  d(drush_get_option($hash_name, '@self', 'alias'), TRUE);
  // Make sure that the provision command is not being run as the root user.
  _provision_drush_check_user();
  // Abort the process if the load is too high.
  _provision_drush_check_load();
}