Class: Node::Commands::Open
- Inherits:
-
ShopifyCli::Command
- Object
- CLI::Kit::BaseCommand
- ShopifyCli::Command
- Node::Commands::Open
- Defined in:
- lib/project_types/node/commands/open.rb
Instance Attribute Summary
Attributes inherited from ShopifyCli::Command
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
Constructor Details
This class inherits a constructor from ShopifyCli::Command
Class Method Details
.help ⇒ Object
11 12 13 |
# File 'lib/project_types/node/commands/open.rb', line 11 def self.help ShopifyCli::Context.('node.open.help', ShopifyCli::TOOL_NAME) end |
Instance Method Details
#call ⇒ Object
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 |