Quick question about rake task dependencies. Suppose I have the
task :prepare_to_fight => :has_weapons do
task :attack_with_gun => :prepare_to_fight do
task :attack_with_sword => :prepare_to_fight do
Now, by default, if I run “rake attack_with_gun attack_with_sword”, it
recognizes that “prepare_to_fight” has already been called when it goes
run the second task. So it saves itself the trouble and skips it.
My question is, is there some way to override that? That is, I want to
prepare_to_fight each time, but only define it in one place. Note also
:prepare_to_fight has a dependency, which I only want to mention in one
place, so I can’t just put this in a method.
Nobody was injured in the making of this completely fictitious, and very