title: Rake before task hook
body: <p>Is there a straight forward way to modify a Rake task to run some bit of code before running the existing task?  I'm looking for something equivalent to enhance, that runs at the beginning rather than the end of the task.</p>
  
  <pre><code>Rake::Task['lame'].enhance(['i_run_afterwards_ha_ha'])
  </code></pre>