diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-09 22:14:46 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-09 22:14:46 +0300 |
commit | 08396be619eee2e71c2f5f7aa27eea6f5ddf10ff (patch) | |
tree | 57377cb67bcc8e9eb9d221e24f167485f3e1ed11 /lib/container_registry/registry.rb | |
parent | 565a5e36fc456831fd08e0627a936855d87eb932 (diff) |
Rename ImageRegistry to ContainerRegistry
Diffstat (limited to 'lib/container_registry/registry.rb')
-rw-r--r-- | lib/container_registry/registry.rb | 14 |
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 |