Rails::Generator::Scripts::Base


Files

Parent

Description

Generator scripts handle command-line invocation. Each script responds to an invoke! class method which handles option parsing and generator invocation.

Methods

Included Modules

Public Instance methods

run (args = [], runtime_options = {})

Run the generator script. Takes an array of unparsed arguments and a hash of parsed arguments, takes the generator as an option or first remaining argument, and invokes the requested command.

Protected Instance methods

banner ()

Override with your own script usage banner.

usage_message ()