Class

Application

Extends:

Includes:

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

Constants
DEFAULT_RAKEFILES
OPTIONS
Public Attributes
name The name of the application (typically ‘rake’)
original_dir The original directory where rake was invoked.
rakefile Name of the actual rakefile used.
top_level_tasks List of the top level task names (task names from the command line).
Public Methods
add_import Add a file to the list of files to be imported.
add_loader Add a loader to handle imported files ending in the extension ext.
collect_tasks Collect the list of tasks on the command line. If no tasks are given, return a list containing only the default task. Environmental assignments are processed at this time as well.
command_line_options Return a list of the command line options supported by the program.
const_warning Warn about deprecated use of top level constant names.
display_prerequisites Display the tasks and prerequisites
display_tasks_and_comments Display the tasks and dependencies.
do_option Do the option defined by opt and value.
handle_options Read and handle the command line options.
have_rakefile True if one of the files in RAKEFILES is in the current directory. If a match is found, it is copied into @rakefile.
help Display the rake command line help.
init Initialize the command line parameters and app name.
invoke_task private —————————————————————-
load_imports Load the pending list of imported files.
load_rakefile Find the rakefile and then load it and any pending imports.
new Initialize a Rake::Application object.
options Application options from the command line
parse_task_string
rake_require Similar to the regular Ruby require command, but will check for .rake files in addition to .rb files.
rakefile_location
raw_load_rakefile
run Run the Rake application. The run method performs the following three steps:
standard_exception_handling Provide standard execption handling for the given block.
top_level Run the top level tasks of a Rake application.
truncate
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.