Sha256: 6d117f9227a7d4c7e38d107427633f5d781fec06bf2aa3bad8c9cadccefdc24a

Contents?: true

Size: 631 Bytes

Versions: 8

Compression:

Stored size: 631 Bytes

Contents

# frozen_string_literal: true
module Rails
  class Command
    class Connect < ShopifyCLI::SubCommand
      prerequisite_task ensure_project_type: :rails

      def call(*)
        if ShopifyCLI::Project.has_current? && ShopifyCLI::Project.current.env
          @ctx.puts(@ctx.message("rails.connect.production_warning"))
        end

        app = ShopifyCLI::Connect.new(@ctx).default_connect("rails")
        @ctx.done(@ctx.message("rails.connect.connected", app))
      end

      def self.help
        ShopifyCLI::Context.message("rails.connect.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shopify-cli-2.6.6 lib/project_types/rails/commands/connect.rb
shopify-cli-2.6.5 lib/project_types/rails/commands/connect.rb
shopify-cli-2.6.4 lib/project_types/rails/commands/connect.rb
shopify-cli-2.6.3 lib/project_types/rails/commands/connect.rb
shopify-cli-2.6.2 lib/project_types/rails/commands/connect.rb
shopify-cli-2.6.1 lib/project_types/rails/commands/connect.rb
shopify-cli-2.6.0 lib/project_types/rails/commands/connect.rb
shopify-cli-2.5.0 lib/project_types/rails/commands/connect.rb