Commit 84572621 authored by Ahmad Hassan's avatar Ahmad Hassan

Better repo restore progress logging

parent fb54eb76
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment