Sha256: 1375f1041d9746f0f45aa1cd65b5c7542e93f8d83863931740acca5a6fa6dc4f

Contents?: true

Size: 449 Bytes

Versions: 2

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true
module Rails
  module Commands
    class Connect < ShopifyCli::SubCommand
      def call(*)
        if ShopifyCli::Project.has_current? && ShopifyCli::Project.current.env
          @ctx.puts(@ctx.message('rails.connect.production_warning'))
        end

        app = ShopifyCli::Commands::Connect.new.default_connect('rails')
        @ctx.done(@ctx.message('rails.connect.connected', app))
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shopify-cli-1.6.0 lib/project_types/rails/commands/connect.rb
shopify-cli-1.5.0 lib/project_types/rails/commands/connect.rb