Sha256: 5607055c0484ea753de428673bab53a97bee7b0aa45fe9ad81abdf3174247ca9

Contents?: true

Size: 490 Bytes

Versions: 9

Compression:

Stored size: 490 Bytes

Contents

module Extension
  module Tasks
    class ConfigureOptions
      include ShopifyCli::MethodObject

      def call(specification_attribute_sets)
        specification_attribute_sets.each do |attributes|
          attributes[:options] ||= {}
          configure_skip_build(attributes)
        end
      end

      private

      def configure_skip_build(attributes)
        attributes[:options].merge!(skip_build: attributes[:identifier] == "theme_app_extension")
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shopify-cli-2.4.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.3.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.2.2 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.2.1 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.2.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.1.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.0.2 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.0.1 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.0.0 lib/project_types/extension/tasks/configure_options.rb