# Rakefile question

**URL:** <https://www.ruby-forum.com/t/rakefile-question/106675>\
**Category:** Ruby\
**Created:** [June 13, 2007, 6:46am UTC](https://www.ruby-forum.com/t/rakefile-question/106675 "2007-06-13T06:46:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magicloud\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e47774/32.png) [@Magicloud\_M](https://www.ruby-forum.com/u/Magicloud_M)\
**Post date:** [June 13, 2007, 6:46am UTC](https://www.ruby-forum.com/t/rakefile-question/106675/1 "2007-06-13T06:46:17Z")

</div>

Dear all,  
Usually, I do dependent task like: task :son =\> [:father] do; end. Now  
I have a task, which depends on task A or task B (either is done is ok).  
How to do this?

Thanks.

---

<div class="post-metadata">

**Author:** ![Magicloud\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e47774/32.png) [@Magicloud\_M](https://www.ruby-forum.com/u/Magicloud_M)\
**Post date:** [June 13, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/rakefile-question/106675/2 "2007-06-13T16:19:06Z")

</div>

Hi! I’m not a ruby/rake expert, but may be you could get this done by  
having 2 different tasks that call the same ruby code, and one child  
task depends on one of the “parent” tasks and the other child task one  
depends on the other “parent” task. Just my $0.02…

Nando
