Sha256: c8274e58aa2a2053a8f45e84fd068b2f31fbf046c6bd3f9304bd5d8204338916

Contents?: true

Size: 369 Bytes

Versions: 20

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

20 entries across 20 versions & 1 rubygems

Version Path
shopify-cli-1.6.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.5.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.4.1 lib/project_types/rails/commands/open.rb
shopify-cli-1.4.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.3.1 lib/project_types/rails/commands/open.rb
shopify-cli-1.3.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.2.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.1.2 lib/project_types/rails/commands/open.rb
shopify-cli-1.1.1 lib/project_types/rails/commands/open.rb
shopify-cli-1.1.0 lib/project_types/rails/commands/open.rb
shopify-cli-1.0.5 lib/project_types/rails/commands/open.rb
shopify-cli-1.0.4 lib/project_types/rails/commands/open.rb
shopify-cli-1.0.3 lib/project_types/rails/commands/open.rb
shopify-cli-1.0.2 lib/project_types/rails/commands/open.rb
shopify-cli-1.0.1 lib/project_types/rails/commands/open.rb
shopify-cli-1.0.0 lib/project_types/rails/commands/open.rb
shopify-cli-0.9.3 lib/project_types/rails/commands/open.rb
shopify-cli-0.9.2 lib/project_types/rails/commands/open.rb
shopify-cli-0.9.1 lib/project_types/rails/commands/open.rb
shopify-cli-0.9.0 lib/project_types/rails/commands/open.rb