Doh - this went directly to Roy, not the entire list. Here it is for anyone who's interested...
---------- Forwarded message ---------- From: Travis Swicegood <[email protected]> Date: Wed, Mar 2, 2011 at 5:16 PM Subject: Re: [Fab-user] Best way of making proposals for Fabric? To: Rory Campbell-Lange <[email protected]> On Wed, Mar 2, 2011 at 1:41 PM, Rory Campbell-Lange <[email protected] > wrote: > 3. setup and teardown > Just as a thought, have you considered moving the logic into decorators? They essentially provide setup/teardown functionality in that you can controll when the decorated function is executed. That leads to very readable code: @ssh_tunnel(source, destination) def my_awesomeness(): # some really awesome task code Doesn't change that it'd be cool for tunneling to be exposed inside Fabric. Maybe it should be a decorator. -T
_______________________________________________ Fab-user mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/fab-user
