Class: Prologue::TemplateRunner

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/prologue/template_runner.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object

Define the Standard Arguments in any base template class



10
11
12
13
14
# File 'lib/prologue/template_runner.rb', line 10

def self.extended(base)
  base.class_eval do
    argument :project , :type => :string
  end
end

Instance Method Details

#on_invocationObject

The method to run when the template is invoked. This is used to parse custom options from the command line or complete any other setup prior to invoking the system command that will construct the project.



23
24
25
# File 'lib/prologue/template_runner.rb', line 23

def on_invocation
  raise Prologue::Errors::TemplateRunnerInvocationNotImplementedError.new("Template did not define an on_invocation method!")
end