gitlab-org--gitlab-foss/lib/container_registry/config.rb
Kamil Trzcinski a82109eee8 Add .gitkeep
2016-05-17 09:41:47 -05:00

16 lines
257 B
Ruby

module ContainerRegistry
class Config
attr_reader :tag, :blob, :data
def initialize(tag, blob)
@tag, @blob = tag, blob
@data = JSON.parse(blob.data)
end
def [](key)
return unless data
data[key]
end
end
end