Sha256: f4fd3e69eae30d68eb48edab369412565e6bc92fa7a3aefd1286a400030ddbf5

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Domain
      class PushPackage
        attr_reader :id,
          :extension_point_type,
          :script_name,
          :description,
          :config_ui,
          :script_content,
          :compiled_type,
          :metadata

        def initialize(
          id:,
          extension_point_type:,
          script_name:,
          description:,
          script_content:,
          compiled_type:,
          metadata:,
          config_ui:
        )
          @id = id
          @extension_point_type = extension_point_type
          @script_name = script_name
          @description = description
          @script_content = script_content
          @compiled_type = compiled_type
          @metadata = metadata
          @config_ui = config_ui
        end

        def push(script_service, api_key, force)
          script_service.push(
            extension_point_type: @extension_point_type,
            script_name: @script_name,
            description: @description,
            script_content: @script_content,
            compiled_type: @compiled_type,
            api_key: api_key,
            force: force,
            metadata: @metadata,
            config_ui: @config_ui,
          )
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shopify-cli-1.8.0 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.7.1 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.7.0 lib/project_types/script/layers/domain/push_package.rb