Sha256: 092f1dcf18ca07df4f6bd33e316800e8fa7e4a65989919d6ec56ea025b5aad73

Contents?: true

Size: 757 Bytes

Versions: 19

Compression:

Stored size: 757 Bytes

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Domain
      class PushPackage
        attr_reader :id, :script, :script_content, :compiled_type

        def initialize(id, script, script_content, compiled_type)
          @id = id
          @script = script
          @script_content = script_content
          @compiled_type = compiled_type
        end

        def push(script_service, api_key, force)
          script_service.push(
            extension_point_type: @script.extension_point_type,
            script_name: @script.name,
            script_content: @script_content,
            compiled_type: @compiled_type,
            api_key: api_key,
            force: force
          )
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
shopify-cli-1.5.0 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.4.1 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.4.0 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.3.1 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.3.0 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.2.0 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.1.2 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.1.1 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.1.0 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.0.5 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.0.4 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.0.3 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.0.2 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.0.1 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-1.0.0 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-0.9.3 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-0.9.2 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-0.9.1 lib/project_types/script/layers/domain/push_package.rb
shopify-cli-0.9.0 lib/project_types/script/layers/domain/push_package.rb