Sha256: 09390a39e603bd1362634588847a4b8268006fb500d872a6fb35bc05c0360585

Contents?: true

Size: 769 Bytes

Versions: 13

Compression:

Stored size: 769 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:)
          UI::PrintingSpinner.spin(ctx, ctx.message('script.application.enabling')) do |p_ctx, spinner|
            script_service = Infrastructure::ScriptService.new(ctx: p_ctx)
            script_service.enable(
              api_key: api_key,
              shop_domain: shop_domain,
              configuration: configuration,
              extension_point_type: extension_point_type,
              title: title
            )
            spinner.update_title(p_ctx.message('script.application.enabled'))
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shopify-cli-1.6.0 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.5.0 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.4.1 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.4.0 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.3.1 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.3.0 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.2.0 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.1.2 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.1.1 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.1.0 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.0.5 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.0.4 lib/project_types/script/layers/application/enable_script.rb
shopify-cli-1.0.3 lib/project_types/script/layers/application/enable_script.rb