Sha256: 844a3a873e5a153e1fecea7b9b5fc66eb071f3ec7bcae19205f8405bfe7ca791
Contents?: true
Size: 685 Bytes
Versions: 45
Compression:
Stored size: 685 Bytes
Contents
# frozen_string_literal: true module Extension module Loaders module SpecificationHandler def self.load(project:, context:) identifier = project.specification_identifier Models::LazySpecificationHandler.new(identifier) do specifications = Models::Specifications.new( fetch_specifications: Tasks::FetchSpecifications.new(api_key: project.app.api_key, context: context) ) unless specifications.valid?(identifier) raise ShopifyCLI::Abort, context.message("errors.unknown_type", project.specification_identifier) end specifications[identifier] end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems