function drush_provision_save

7.x-3.x provision.drush.inc drush_provision_save($alias = NULL)

Related topics

File

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

Code

function drush_provision_save($alias = NULL) {
  if (drush_get_option('delete', FALSE)) {
    // remove an existing alias
    $config = new Provision_Config_Drushrc_Alias($alias);
    $config->unlink();
  }
  else {
    // trigger additional logic that should happen only on save.
    d($alias)->type_invoke('save');
    // create or update the record
    d($alias)->write_alias();
  }
}