Module: Rake::Multilogs::Task

Defined in:
lib/rake/multilogs/task.rb

Overview

Monkey-patches Rake::Task to group multitask output by task and display it when all tasks have completed.

Instance Method Summary collapse

Instance Method Details

#invoke_prerequisites_concurrently(task_args, invocation_chain) ⇒ void

This method returns an undefined value.

Invoke all the prerequisites of a task in parallel, grouping output by task and displaying it when all tasks have completed.



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/rake/multilogs/task.rb', line 11

def invoke_prerequisites_concurrently(task_args, invocation_chain)
  Multilogs.call_before_fork self

  Forks.new(
    tasks: prerequisite_tasks,
    args: task_args,
    invocation_chain: invocation_chain
  ).invoke

  Multilogs.call_after_fork self
end