Skip to content
Browse files

Add comments to Rake::Task#prerequisite_tasks!

Signed-off-by: João Soares <jsoaresgeral@gmail.com>
  • Loading branch information...
1 parent 080987c commit 396a64a6fe1730897914fdb5ceab705c69bb1cb0 @jasoares jasoares committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/rake/task.rb
View
3 lib/rake/task.rb
@@ -61,6 +61,9 @@ def lookup_prerequisite(prerequisite_name)
end
private :lookup_prerequisite
+ # Complete list of prerequisite tasks including subtask's prerequisites
+ # recursively until no prerequisites exist or depth +limit+ reached.
+ # Default +limit+ is 30.
def prerequisite_tasks!(limit=30)
self.prerequisite_tasks.inject([]) do |tasks, task|
tasks << task

0 comments on commit 396a64a

Please sign in to comment.
Something went wrong with that request. Please try again.