This got me a couple days ago. The documentation online is actually for the
development head in git. The documentation you want is available from
http://github.com/karmazilla/fabric/tree/0.0.9. Look inside the doc folder.
Alternately, you could just install the development head. They added a hosts
decorator that makes working with different sets of servers in the same
script much easier (possible).

HTH,
Alex

On Sun, Feb 15, 2009 at 9:27 PM, Mike Panchenko <m...@mihasya.com> wrote:

> I have a file named fabfile.py and was literally just testing out basic
> functionality using 0.0.9 and the user guide.
>
> def staging():
>     config.fab_hosts = ['my.staging.host.com']
>
> def hello_remote():
>     """prints hello on the remote hosts"""
>     run("echo hello from $(fab_host) to $(fab_user)")
>
> I get
>
> config.fab_hosts = ['my.staging.host.com']
> NameError: global name 'config' is not defined
>
> when I run
>
> fab staging hello_remote
>
> am I missing something really trivial? All the sample files on git don't
> seem to have anything special defined for config before using it. Thanks.
>
> Mike.
>
> _______________________________________________
> Fab-user mailing list
> Fab-user@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/fab-user
>
>
_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to