Sha256: 0053580e00930d6cfed9b884a9d37dc18a87c8ee185fba8e8e1e4cbf3e345e30

Contents?: true

Size: 660 Bytes

Versions: 49

Compression:

Stored size: 660 Bytes

Contents

module ShopifyCLI
  module Services
    module App
      class ConnectService < BaseService
        attr_reader :app_type, :project, :context

        def initialize(app_type:, project:, context:)
          @app_type = app_type
          @project = project
          @context = context
          super()
        end

        def call
          unless project&.env.nil?
            context.puts(context.message("core.app.connect.production_warning"))
          end

          app = ShopifyCLI::Connect.new(context).default_connect(app_type.to_s)
          context.done(context.message("core.app.connect.connected", app))
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
shopify-cli-2.36.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.35.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.34.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.33.1 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.33.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.32.1 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.32.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.31.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.30.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.29.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.28.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.27.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.26.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.25.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.24.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.23.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.22.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.21.0 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.20.1 lib/shopify_cli/services/app/connect_service.rb
shopify-cli-2.20.0 lib/shopify_cli/services/app/connect_service.rb