debian-mirror-gitlab/lib/container_registry/config.rb
2020-05-25 16:23:42 +05:30

18 lines
296 B
Ruby

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