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: Oivvio Polite
Subject: Re: [Fab-user] Sticking more stuff into env from the commandline
Date: Wed, 5 Oct 2011 15:02:46 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Oct 05, 2011 at 11:00:16PM +1100, Simon KP wrote:
> You could set env variables from passing an argument to fabric function from
> command line,
> 
> $ fab sometask:foo,baz,keyword=kwbar
> 
> sometask(first, second, keyword='')
>     env.first = first
>     env.second = second
>     env.keywork = keyword

And if I have a whole bunch of tasks that depend on the same env
variables being present do I then need to duplicate this for every task
definition?

oivvio

-- 
http://liberationtech.net



reply via email to

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