function drush_warden_check_connection in Warden 7
Same name and namespace in other branches
- 6 warden.drush.inc \drush_warden_check_connection()
Test the connection to warden.
File
- ./
warden.drush.inc, line 32 - Drush integration with the Warden module.
Code
function drush_warden_check_connection() {
drush_print(dt('Going to check connection to Warden server by retreiving the public key ...'));
try {
$key = warden_get_api()
->getPublicKey();
drush_print($key);
} catch (Exception $e) {
drush_set_error($e
->getMessage());
}
}