Sha256: 59bef6ec0245471db1f68f109d212f6fe6f9743afc894419a03a6c78cfab1a94
Contents?: true
Size: 834 Bytes
Versions: 1
Compression:
Stored size: 834 Bytes
Contents
# frozen_string_literal: true require "shopify_cli" module Extension module Commands class ExtensionCommand < ShopifyCli::Command def project @project ||= ExtensionProject.current end def extension_type @extension_type ||= begin identifier = project.extension_type_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.extension_type_identifier)) end specifications[identifier] end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopify-cli-1.8.0 | lib/project_types/extension/commands/extension_command.rb |