Sha256: fe3366b1b35a6c5ce2ef54871e3b6a7a6cff4894f302b2e68383e3f588397ace
Contents?: true
Size: 475 Bytes
Versions: 27
Compression:
Stored size: 475 Bytes
Contents
module Script module Layers module Infrastructure class MetadataRepository include SmartProperties property! :ctx, accepts: ShopifyCLI::Context def get_metadata(file_location) raise Domain::Errors::MetadataNotFoundError, file_location unless ctx.file_exist?(file_location) raw_contents = File.read(file_location) Domain::Metadata.create_from_json(ctx, raw_contents) end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems