Sha256: 4a4e04cde4fe1b1cc40bed1a6c30f26dd80011baecf0b8ff56c8ee4594002148

Contents?: true

Size: 369 Bytes

Versions: 11

Compression:

Stored size: 369 Bytes

Contents

require "shopify_cli"

module Rails
  module Commands
    class Open < ShopifyCli::Command
      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

11 entries across 11 versions & 1 rubygems

Version Path
shopify-cli-1.14.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.13.1 lib/project_types/rails/commands/open.rb
shopify-cli-1.13.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.12.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.11.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.10.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.9.1 lib/project_types/rails/commands/open.rb
shopify-cli-1.9.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.8.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.7.1 lib/project_types/rails/commands/open.rb
shopify-cli-1.7.0 lib/project_types/rails/commands/open.rb