fab-user
[Top][All Lists]
Advanced

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

[Fab-user] Re: can't populate env.hosts and env.user


From: Brett Haydon
Subject: [Fab-user] Re: can't populate env.hosts and env.user
Date: Wed, 22 Dec 2010 10:13:46 +1100

I'm not sure why you wouldn't just use roles but fabric sets the hosts before 
the functions are run so if you're trying to alter what hosts things run on at 
a function level you should use @hosts decorator or more likely for what you 
want the `with settings` context manager.

ie with settings(user=user, host='55.55.55.55'):
            deploy()

On 22/12/2010, at 4:02 AM, address@hidden wrote:

> can't populate env.hosts and env.user 

Brett







reply via email to

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