summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-04 14:22:54 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-04 14:22:54 +0200
commit9243b6d0197ee7e3f1856d7e16f750fa74341851 (patch)
treece681fa4e77f6155409d50ef5bddbd3005f470f6 /app/models/project.rb
parentb0ddbaa07cd780b0ed86aa4e3c24744c6426b1e1 (diff)
downloadgitlab-ce-9243b6d0197ee7e3f1856d7e16f750fa74341851.tar.gz
Implement Container Registry API client
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 496f9f3e347..b905ebbfcaa 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -370,8 +370,9 @@ class Project < ActiveRecord::Base
@repository ||= Repository.new(path_with_namespace, self)
end
- def registry
- @registry ||= Registry.new(path_with_namespace, self)
+ def image_repository
+ @registry ||= ImageRegistry::Registry.new(Gitlab.config.registry.api_url)
+ @image_repository ||= ImageRegistry::Repository.new(@registry, path_with_namespace)
end
def registry_repository_url