class RailsMaker::TemplateRunner

Public Class Methods

extended(base) click to toggle source

Define the Standard Arguments in any base template class

# File lib/rails-maker/template_runner.rb, line 10
def self.extended(base)
  base.class_eval do
    argument :project, :type => :string
  end
end

Public Instance Methods

on_invocation() click to toggle source

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.

# File lib/rails-maker/template_runner.rb, line 23
def on_invocation
  raise RailsMaker::Errors::TemplateRunnerInvocationNotImplementedError.new("Template did not define an on_invocation method!")
end