diff options
author | Ahmad Hassan <ahmad.hassan612@gmail.com> | 2018-05-06 22:32:25 +0300 |
---|---|---|
committer | Ahmad Hassan <ahmad.hassan612@gmail.com> | 2018-05-15 16:43:04 +0300 |
commit | 845726212584fd9413e1fa70fb3896342f824434 (patch) | |
tree | 42d08c3445f5089bf799cb2fdf1a7063fbddfbde | |
parent | fb54eb76ee79121f2aeb480944e6d0552100743b (diff) |
Better repo restore progress logging
-rw-r--r-- | lib/backup/repository.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |