guillermo / rake-hooks

Rake hooks let you add callbacks to rake tasks.
MIT License
70 stars 21 forks source link

if the task you want to hook has arguments... #14

Open Hundsbuah opened 9 years ago

Hundsbuah commented 9 years ago

Hi all,

i came across this problem when using rake-hooks for our buildenv written in ruby/rake.

If the task you want to hook with after or before has task arguments, the task arguments of the original task are ignored. i found a solution some time ago, but forgot to share the solution with you, but now here you go:

http://codeviewer.org/view/code:4d9b

I can also create a pull request if you wish

Best regards, Christian Lohwasser