FEATURE: Trigger an event after a backup restore

FEATURE: Trigger an event after a backup restore

diff --git a/lib/backup_restore/restorer.rb b/lib/backup_restore/restorer.rb
index 30eaa07..5dcc377 100644
--- a/lib/backup_restore/restorer.rb
+++ b/lib/backup_restore/restorer.rb
@@ -81,6 +81,8 @@ module BackupRestore
       clear_theme_cache
 
       extract_uploads
+
+      after_restore_hook
     rescue SystemExit
       log "Restore process was cancelled!"
       rollback
@@ -531,6 +533,11 @@ module BackupRestore
       FileUtils.mkdir_p(directory)
     end
 
+    def after_restore_hook
+      log "Executing the after_restore_hook..."
+      DiscourseEvent.trigger(:restore_complete)
+    end
+
     def log(message, ex = nil)
       timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
       puts(message)

GitHub sha: 99ad61af