Class: Rake::Task
- Inherits:
-
Object
- Object
- Rake::Task
- Defined in:
- lib/MusicMaster/Task.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Data stored in the task itself, built during its invocation.
Instance Method Summary collapse
-
#invoke_prerequisites(task_args, invocation_chain) ⇒ Object
Rewrite it.
-
#invoke_prerequisites_ORG ⇒ Object
Keep original method.
Instance Attribute Details
#data ⇒ Object
Data stored in the task itself, built during its invocation. Useful to represent targets having data not stored in a file.
7 8 9 |
# File 'lib/MusicMaster/Task.rb', line 7 def data @data end |
Instance Method Details
#invoke_prerequisites(task_args, invocation_chain) ⇒ Object
Rewrite it
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/MusicMaster/Task.rb', line 12 def invoke_prerequisites(task_args, invocation_chain) prerequisites_changed = true while (prerequisites_changed) # Keep original prerequisites list original_prerequisites = prerequisite_tasks.clone # Call original method (this call might change the prerequisites list) invoke_prerequisites_ORG(task_args, invocation_chain) prerequisites_changed = (prerequisite_tasks != original_prerequisites) end end |
#invoke_prerequisites_ORG ⇒ Object
Keep original method
10 |
# File 'lib/MusicMaster/Task.rb', line 10 alias :invoke_prerequisites_ORG :invoke_prerequisites |