You are here

function drush_warden_update in Warden 8

Same name and namespace in other branches
  1. 8.2 warden.drush.inc \drush_warden_update()
  2. 6 warden.drush.inc \drush_warden_update()
  3. 7 warden.drush.inc \drush_warden_update()
  4. 3.x warden.drush.inc \drush_warden_update()

Test the connection to warden.

File

./warden.drush.inc, line 61
Drush integration with the Warden module.

Code

function drush_warden_update() {
  drush_print(dt('Going to update Warden ...'));
  try {
    _warden_get_manager()
      ->updateWarden();
    drush_print(dt('... success'));
  } catch (Exception $e) {
    return drush_set_error($e
      ->getMessage());
  }
}