module Rake::Multilogs::Task

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

Public Instance Methods

invoke_prerequisites_concurrently(task_args, invocation_chain) click to toggle source

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

# 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