Class: Rake::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/MusicMaster/Task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

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_ORGObject

Keep original method



10
# File 'lib/MusicMaster/Task.rb', line 10

alias :invoke_prerequisites_ORG :invoke_prerequisites