fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] Sticking more stuff into env from the commandline


From: Jeff Forcier
Subject: Re: [Fab-user] Sticking more stuff into env from the commandline
Date: Wed, 5 Oct 2011 08:13:44 -0700

Hi Oivvio, Christian, list,

On Wed, Oct 5, 2011 at 6:47 AM, Christian Vest Hansen
<address@hidden> wrote:

> Otherwise a `let` command (a generalized form of Simons suggestion) is
> fairly easy to write:
>
> @Task
> def let(**args):
>
> env.update(args)

This will work, though it needs to be @task, not @Task :) (And use of
@task is optional here -- "classic" tasks not using the decorator will
work just fine too.)

Additionally, there are plans to add this as some command flag
eventually -- see https://github.com/fabric/fabric/issues/13 .

Best,
Jeff



-- 
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]