Class Rake::Application
In: lib/rake/application.rb
Parent: Object

Rake main application object. When invoking rake from the command line, a Rake::Application object is created and run.

Methods

Included Modules

TaskManager TraceOutput

Constants

DEFAULT_RAKEFILES = [ "rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"

Attributes

name  [R]  The name of the application (typically ‘rake’)
original_dir  [R]  The original directory where rake was invoked.
rakefile  [R]  Name of the actual rakefile used.
terminal_columns  [RW]  Number of columns on the terminal
top_level_tasks  [R]  List of the top level task names (task names from the command line).
tty_output  [W]  Override the detected TTY output state (mostly for testing)

Public Class methods

Initialize a Rake::Application object.

Public Instance methods

Add a loader to handle imported files ending in the extension ext.

Initialize the command line parameters and app name.

Find the rakefile and then load it and any pending imports.

Application options from the command line

Run the Rake application. The run method performs the following three steps:

If you wish to build a custom rake command, you should call init on your application. Then define any tasks. Finally, call top_level to run your top level tasks.

Run the given block with the thread startup and shutdown.

Run the top level tasks of a Rake application.

[Validate]