Sha256: f859191def5132435f30cdc44388c6a7c8018e65d582ec28db3fb2c86c536ee7

Contents?: true

Size: 568 Bytes

Versions: 8

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true
module PHP
  class Command
    class Connect < ShopifyCLI::SubCommand
      def call(*)
        if ShopifyCLI::Project.has_current? && ShopifyCLI::Project.current.env
          @ctx.puts(@ctx.message("php.connect.production_warning"))
        end

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

      def self.help
        ShopifyCLI::Context.message("php.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/php/commands/connect.rb
shopify-cli-2.6.5 lib/project_types/php/commands/connect.rb
shopify-cli-2.6.4 lib/project_types/php/commands/connect.rb
shopify-cli-2.6.3 lib/project_types/php/commands/connect.rb
shopify-cli-2.6.2 lib/project_types/php/commands/connect.rb
shopify-cli-2.6.1 lib/project_types/php/commands/connect.rb
shopify-cli-2.6.0 lib/project_types/php/commands/connect.rb
shopify-cli-2.5.0 lib/project_types/php/commands/connect.rb