Class: Node::Commands::Open

Inherits:
ShopifyCli::Command show all
Defined in:
lib/project_types/node/commands/open.rb

Instance Attribute Summary

Attributes inherited from ShopifyCli::Command

#ctx, #options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ShopifyCli::Command

call, call_help, #initialize, options, prerequisite_task, run_prerequisites, subcommand, subcommand_registry

Methods included from ShopifyCli::Feature::Set

#hidden?, #hidden_feature

Constructor Details

This class inherits a constructor from ShopifyCli::Command

Class Method Details

.helpObject



11
12
13
# File 'lib/project_types/node/commands/open.rb', line 11

def self.help
  ShopifyCli::Context.message('node.open.help', ShopifyCli::TOOL_NAME)
end

Instance Method Details

#callObject



6
7
8
9
# File 'lib/project_types/node/commands/open.rb', line 6

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