Sha256: fe4dd4d4dba70dfd38ba0c82d256e0f42ba6942a92e784f9198b5f9ea1c6a90a

Contents?: true

Size: 423 Bytes

Versions: 8

Compression:

Stored size: 423 Bytes

Contents

require "shopify_cli"

module Rails
  class Command
    class Open < ShopifyCLI::SubCommand
      prerequisite_task ensure_project_type: :rails

      def call(*)
        project = ShopifyCLI::Project.current
        @ctx.open_url!("#{project.env.host}/login?shop=#{project.env.shop}")
      end

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