Sha256: 51c3b79df96fef30a49f008524bff75170aeb6b482890c9c642d580a35bbf7cb
Contents?: true
Size: 741 Bytes
Versions: 1
Compression:
Stored size: 741 Bytes
Contents
require 'thor' require 'thor/actions' require 'thor/group' module Shinkansen class TemplateRunner < Thor::Group # Define the Standard Arguments in any base template class def self.extended(base) base.class_eval do argument :project , :type => :string end end # Includes include Thor::Actions # 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. def on_invocation raise Shinkansen::Errors::TemplateRunnerInvocationNotImplementedError.new("Template did not define an on_invocation method!") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shinkansen-0.1 | lib/shinkansen/template_runner.rb |