Sha256: 3239674f8dae06dd1aae205ac51d82d5e2311b7c1fc49af862e378a296b814bd

Contents?: true

Size: 617 Bytes

Versions: 7

Compression:

Stored size: 617 Bytes

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Application
      class EnableScript
        def self.call(ctx:, api_key:, shop_domain:, configuration:, extension_point_type:, title:)
          script_service = Infrastructure::ScriptService.new(ctx: ctx)
          script_service.enable(
            api_key: api_key,
            shop_domain: shop_domain,
            configuration: configuration,
            extension_point_type: extension_point_type,
            title: title
          )
          ctx.puts(ctx.message('script.application.enabled'))
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shopify-cli-1.0.2 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.0.1 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.0.0 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-0.9.3 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-0.9.2 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-0.9.1 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-0.9.0 lib/project_types/script/layers/application/enable_script.rb