Define custom methods for Capistrano?

I'm attempting to define custom methods for Capistrano, to be used within my cap tasks. I can define methods, and then use such methods within tasks just fine, until I attempt to call such methods ...