Sha256: 9623bbe90abcf2007ad85d78fb31ba122544178d10ab793234ef50a1c29e30f6
Contents?: true
Size: 672 Bytes
Versions: 43
Compression:
Stored size: 672 Bytes
Contents
# frozen_string_literal: true module Script 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) context.abort(context.message("errors.unknown_type", project.specification_identifier)) end specifications[identifier] end end end end end
Version data entries
43 entries across 43 versions & 1 rubygems