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

Getting a dependency's resolution with --prereqs

Another useful option that only shows us the task dependency resolution and nothing more is -P or --prereqs. Unlike the --trace option, it doesn't execute the tasks, as shown in the following lines of command:

$ rake -P
rake task1
rake task2

The list contains the defined tasks and their dependencies with indentation. Take a look at the task1 text that is shifted in the last line. It is written after rake task2 and it means that task2 is dependent on task1.