Rake main application object. When invoking rake from the command line, a Rake::Application object is created and run.
| Constants | |
|---|---|
| DEFAULT_ |
|
| OPTIONS | |
| Public Attributes | |
|---|---|
| name | The name of the application (typically ‘rake’) |
| original_ |
The original directory where rake was invoked. |
| rakefile | Name of the actual rakefile used. |
| top_ |
List of the top level task names (task names from the command line). |
| Public Methods | |
|---|---|
| add_ |
Add a file to the list of files to be imported. |
| add_ |
Add a loader to handle imported files ending in the extension ext. |
| collect_ |
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_ |
Return a list of the command line options supported by the program. |
| const_ |
Warn about deprecated use of top level constant names. |
| display_ |
Display the tasks and prerequisites |
| display_ |
Display the tasks and dependencies. |
| do_ |
Do the option defined by opt and value. |
| handle_ |
Read and handle the command line options. |
| have_ |
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_ |
private —————————————————————- |
| load_ |
Load the pending list of imported files. |
| load_ |
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_ |
|
| rake_ |
Similar to the regular Ruby require command, but will check for .rake files in addition to .rb files. |
| rakefile_ |
|
| raw_ |
|
| run | Run the Rake application. The run method performs the following three steps: |
| standard_ |
Provide standard execption handling for the given block. |
| top_ |
Run the top level tasks of a Rake application. |
| truncate | |
<code/>and<pre/>for code samples.