diff options
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 |