Sha256: c99ef0f51b5bbe6c8498b4f8f9d5839cc905aab4e77f53910899ce07f2fabaa0

Contents?: true

Size: 551 Bytes

Versions: 22

Compression:

Stored size: 551 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" ||
         attributes[:identifier] == "web_pixel_extension")
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
shopify-cli-2.36.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.35.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.34.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.33.1 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.33.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.32.1 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.32.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.31.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.30.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.29.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.28.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.27.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.26.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.25.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.24.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.23.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.22.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.21.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.20.1 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.20.0 lib/project_types/extension/tasks/configure_options.rb