debian-mirror-gitlab/lib/backup/registry.rb

20 lines
357 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2016-06-02 11:05:42 +05:30
module Backup
2021-01-03 14:25:43 +05:30
class Registry < Backup::Files
2018-11-08 19:23:39 +05:30
def initialize(progress)
2022-05-07 20:08:51 +05:30
super(progress, 'registry', Settings.registry.path)
2016-06-02 11:05:42 +05:30
end
2022-04-04 11:22:00 +05:30
2022-05-07 20:08:51 +05:30
override :human_name
2022-04-04 11:22:00 +05:30
def human_name
_('container registry images')
end
2022-05-07 20:08:51 +05:30
override :enabled
2022-04-04 11:22:00 +05:30
def enabled
Gitlab.config.registry.enabled
end
2016-06-02 11:05:42 +05:30
end
end