Sha256: 3a81b24327b14234d76d56c1f414fe268ca6d772c63b4f818f0b07e445da2e17

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

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

        app = ShopifyCli::Commands::Connect.new.default_connect('node')
        @ctx.done(@ctx.message('node.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/node/commands/connect.rb
shopify-cli-1.5.0 lib/project_types/node/commands/connect.rb