Topic: Overriding use_sudo in cap for only some tasks?
So I have a mainly working cap recipe. Currently I'm running cap as a non-privileged uses, who has a few entries in the sudoer file -- I've added the line need to allow this user to start/stop the mongrel cluster. Which was the only thing requireing sudo access so until I tried running cap cleanup. All the directories cap cleanup wants to delete are entirely owned by the non-priviledged user so there's no reason for cap to want to "sudo rm -rf [directorylist]" and I'm definitely uncomfortable giving an entry for rm in sudoers... Is there any simple way to modify the recipe so that cap doesn't use sudo on cleanup? But does on other tasks that require it?