debian-mirror-gitlab/lib/gitlab/import_export/statistics_restorer.rb

20 lines
353 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
2018-05-09 12:01:36 +05:30
module Gitlab
module ImportExport
class StatisticsRestorer
def initialize(project:, shared:)
@project = project
@shared = shared
end
def restore
@project.statistics.refresh!
2021-06-08 01:23:25 +05:30
rescue StandardError => e
2018-05-09 12:01:36 +05:30
@shared.error(e)
false
end
end
end
end