From 845726212584fd9413e1fa70fb3896342f824434 Mon Sep 17 00:00:00 2001 From: Ahmad Hassan Date: Sun, 6 May 2018 21:32:25 +0200 Subject: Better repo restore progress logging --- lib/backup/repository.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb index d068d1f66c4..4fc1dded344 100644 --- a/lib/backup/repository.rb +++ b/lib/backup/repository.rb @@ -93,11 +93,15 @@ module Backup path_to_project_bundle = path_to_bundle(project) project.repository.create_from_bundle path_to_project_bundle unless project.repository_exists? + progress.puts "[DONE] restoring #{project.name} repository".color(:green) wiki = ProjectWiki.new(project) path_to_wiki_bundle = path_to_bundle(wiki) - project.repository.create_from_bundle(path_to_wiki_bundle) if File.exists?(path_to_wiki_bundle) + if File.exists?(path_to_wiki_bundle) + project.repository.create_from_bundle(path_to_wiki_bundle) + progress.puts "[DONE] restoring #{project.name} wiki".color(:green) + end end end # rubocop:enable Metrics/AbcSize -- cgit v1.2.1