Skip to content
Snippets Groups Projects
Commit 84572621 authored by Ahmad Hassan's avatar Ahmad Hassan
Browse files

Better repo restore progress logging

parent fb54eb76
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment