Sha256: 0dd8b35355926297a002a3f7d23aefa4bc02ff2de5559e88eb3c60cf46069662

Contents?: true

Size: 548 Bytes

Versions: 8

Compression:

Stored size: 548 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] == "beacon_extension")
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shopify-cli-2.18.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.17.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.16.1 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.16.0 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.15.6 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.15.5 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.15.4 lib/project_types/extension/tasks/configure_options.rb
shopify-cli-2.15.3 lib/project_types/extension/tasks/configure_options.rb