Sha256: b4feb841c65703cbe6ada7c28af284730b78dc82019ef19e6c6ef0d663fdceda
Contents?: true
Size: 847 Bytes
Versions: 8
Compression:
Stored size: 847 Bytes
Contents
# frozen_string_literal: true require "shopify_cli" module Extension class Command class ExtensionCommand < ShopifyCLI::SubCommand 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