If like me you didn’t know, you can do that with Capistrano:

1 $ cap HOSTS=web0.myapp.com deploy:update_code
2 cap ROLES=web,app deploy

Not terribly useful for the tasks demonstrated above, but what about this ?

1 $ cap ROLES=app monit:summary

Incidentally, where are these documented ? I dimly remembered reading this somewhere once, and tried it. Works like a charm!