Sha256: b43286f779d5422aac9450942281616aafda1219e9923f6d12aa960e0f06f4f0

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 KB

Contents

# frozen_string_literal: true

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

        def initialize(
          id:,
          uuid:,
          extension_point_type:,
          script_name:,
          script_content:,
          compiled_type:,
          metadata:,
          config_ui:
        )
          @id = id
          @uuid = uuid
          @extension_point_type = extension_point_type
          @script_name = script_name
          @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(
            uuid: @uuid,
            extension_point_type: @extension_point_type,
            script_name: @script_name,
            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

6 entries across 6 versions & 1 rubygems

Version Path
shopify-cli-1.13.1 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.13.0 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.12.0 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.11.0 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.10.0 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.9.1 lib/project_types/script/layers/domain/push_package.rb