Sha256: 4351256f20d1a7f653a36f6bec34c6b8f68fa9acf3fcda2c254675faf004f6ef
Contents?: true
Size: 846 Bytes
Versions: 8
Compression:
Stored size: 846 Bytes
Contents
# frozen_string_literal: true require "shopify_cli" module Extension module Commands class ExtensionCommand < ShopifyCli::Command def project @project ||= ExtensionProject.current end def specification_handler @specification_handler ||= begin 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: @ctx) ) unless specifications.valid?(identifier) @ctx.abort(@ctx.message("errors.unknown_type", project.specification_identifier)) end specifications[identifier] end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems