BigW Consortium Gitlab

config.rb 257 Bytes
Newer Older
1
module ContainerRegistry
2 3 4 5 6 7 8 9 10 11
  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
Kamil Trzcinski committed
12

13 14 15 16
      data[key]
    end
  end
end