Class: Extension::Forms::Questions::AskTemplate

Inherits:
Object
  • Object
show all
Includes:
ShopifyCLI::MethodObject
Defined in:
lib/project_types/extension/forms/questions/ask_template.rb

Instance Method Summary collapse

Methods included from ShopifyCLI::MethodObject

included, #to_proc

Instance Method Details

#call(project_details) ⇒ Object



13
14
15
16
17
18
# File 'lib/project_types/extension/forms/questions/ask_template.rb', line 13

def call(project_details)
  if template_required?(project_details)
    project_details.template = template || choose_interactively(project_details)
  end
  project_details
end