Class

Rails::Generator::Scripts::Base

Inheritance
< Object
Included Modules
Options

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

Methods

Instance

Visibility Signature
public run (args = [], runtime_options = {})
protected banner ()
protected usage_message ()

Instance Method Detail

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.

banner()

Override with your own script usage banner.

usage_message()