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.
DEFAULT_RAKEFILES | = | [ "rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb" |
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) |
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.