Add after and before hooks to rake tasks. You can use "after :task do ... end" and "before :task do ... end".
Guillermo Álvarez
September 9, 2011 8:37pm
k.A.