18 lines
288 B
Ruby
18 lines
288 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|