Class: Extension::Commands::ExtensionCommand
- Inherits:
-
ShopifyCli::Command
- Object
- CLI::Kit::BaseCommand
- ShopifyCli::Command
- Extension::Commands::ExtensionCommand
- Defined in:
- lib/project_types/extension/commands/extension_command.rb
Instance Attribute Summary
Attributes inherited from ShopifyCli::Command
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
Instance Method Details
#extension_type ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/project_types/extension/commands/extension_command.rb', line 11 def extension_type @extension_type ||= begin unless Models::Type.valid?(project.extension_type_identifier) @ctx.abort(@ctx.('errors.unknown_type', project.extension_type_identifier)) end Models::Type.load_type(project.extension_type_identifier) end end |
#project ⇒ Object
7 8 9 |
# File 'lib/project_types/extension/commands/extension_command.rb', line 7 def project @project ||= ExtensionProject.current end |