Skip to content
Htbaa edited this page Mar 16, 2012 · 2 revisions

If you want to chain tasks you can do this with a feature called Batch.

task "task1", sub {
    # do something
};

task "task2", "server1", "server2", sub {
    # do something else
};

desc "Do task1 & task2";
batch "everything" => "task1", "task2";

Now you can execute the batch everything with the "-b" option.

rex -b everything
Clone this wiki locally