Book Image

Rake Task Management Essentials

By : Andrey Koleshko
Book Image

Rake Task Management Essentials

By: Andrey Koleshko

Overview of this book

Table of Contents (18 chapters)
Rake Task Management Essentials
About the Author
About the Reviewers

Introducing Rake's integration with Rails

Before starting the theme analysis, install the Rails gem and generate a Rails application, or you can just open a Rails project that is ready if you have it. The installation is a rather easy process:

$ gem install rails
$ rails g test_app

This command will generate a skeleton of the Rails application.


If you face any issues during this process, please follow the official site at

Now, go to the test_app folder; see if there is a Rakefile there. As you may have already guessed, this is the first sign that the application uses Rake. Although Rails is not a full Rake application, it uses it as an auxiliary tool. If you open Rakefile, you probably won't understand what is going on there. To be honest, you should not care about its content at all because this is an example of how a Rake project could be structured. The file contains only two lines of code! However, you may see that after using the rake -T command, the Rails application...