summaryrefslogtreecommitdiff
path: root/lib/backup/registry.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-16 17:17:57 -0500
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-16 17:25:38 -0500
commit143cd58c398b693db1b9d02f7267db39a8acb87c (patch)
treee6bd78a86ea12ac6e9db6bca15d154a9ed87b63e /lib/backup/registry.rb
parent89644edc4e2a9447cc31d4f966c163316dff95fa (diff)
downloadgitlab-ce-143cd58c398b693db1b9d02f7267db39a8acb87c.tar.gz
Added backup of container registry
Diffstat (limited to 'lib/backup/registry.rb')
-rw-r--r--lib/backup/registry.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/backup/registry.rb b/lib/backup/registry.rb
new file mode 100644
index 00000000000..67fe0231087
--- /dev/null
+++ b/lib/backup/registry.rb
@@ -0,0 +1,13 @@
+require 'backup/files'
+
+module Backup
+ class Registry < Files
+ def initialize
+ super('registry', Settings.registry.path)
+ end
+
+ def create_files_dir
+ Dir.mkdir(app_files_dir, 0700)
+ end
+ end
+end