Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-09 22:14:46 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-09 22:14:46 +0300
commit08396be619eee2e71c2f5f7aa27eea6f5ddf10ff (patch)
tree57377cb67bcc8e9eb9d221e24f167485f3e1ed11 /lib/container_registry/registry.rb
parent565a5e36fc456831fd08e0627a936855d87eb932 (diff)
Rename ImageRegistry to ContainerRegistry
Diffstat (limited to 'lib/container_registry/registry.rb')
-rw-r--r--lib/container_registry/registry.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/container_registry/registry.rb b/lib/container_registry/registry.rb
new file mode 100644
index 00000000000..f866862db22
--- /dev/null
+++ b/lib/container_registry/registry.rb
@@ -0,0 +1,14 @@
+module ContainerRegistry
+ class Registry
+ attr_reader :uri, :client
+
+ def initialize(uri, options = {})
+ @uri = URI.parse(uri)
+ @client = ContainerRegistry::Client.new(uri, options)
+ end
+
+ def [](name)
+ ContainerRegistry::Repository.new(self, name)
+ end
+ end
+end