What do you think of this other PR: https://github.com/progrium/dokku/pull/296, maybe it could provide a bit more flexible solution? 

But, if I understood the current implementation of pluginhook correctly, it would still do multiple deploys which seems a bit wasteful but maybe a flag to pluginhook which makes it only execute the last hook? Or is there a case when multiple deploy scripts would be desirable?