$project['full_project_path'], '!backup_target' => $backup_target))); } return TRUE; } /** * Implementation of rollback(). */ public function rollback($project) { if (drush_op('rename', $project['backup_target'], $project['full_project_path']) && is_dir($project['full_project_path'])) { return drush_log(dt("Backups were restored successfully."), 'ok'); } return drush_set_error('DRUSH_PM_BACKUP_ROLLBACK_FAILED', dt('Could not restore backup and rollback from failed upgrade. You will need to resolve manually.')); } /** * Implementation of post_update(). */ public function post_update($project) { if ($project['backup_target']) { drush_log(dt("Backups were saved into the directory !backup_target.", array('!backup_target' => $project['backup_target'])), 'ok'); } } /** * Implementation of post_download(). */ public function post_download($project) { // NOOP } }