function provision_drush_init

7.x-3.x provision_drush_init()

Implements hook_drush_init().

Related topics


./, line 51
Provision Drush commands.


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.
  // Abort the process if the load is too high.