George Mauer George Mauer - 1 year ago 63
Ruby Question

Specifying that a task has multiple dependencies

I would like to specify that:

  • :output_core
    depends on

  • :build_extension
    depends on

  • :output_extension
    depends on both

How would I specify that last one? That in order to run the
task, both
must be completed?

Answer Source

You specify them with an array:

task :output_extension => [:build_extension, :output_core]
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download