fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] problem with cd context manager in fabric 1.0.1 (worked i


From: Jeff Forcier
Subject: Re: [Fab-user] problem with cd context manager in fabric 1.0.1 (worked in 0.9.3)
Date: Mon, 11 Apr 2011 20:21:28 -0700

On Mon, Apr 11, 2011 at 7:20 PM, Robert Terhaar
<address@hidden> wrote:
> Hi All,

Hi Rob,

> The problem i'm having is with the "cd" context manager, when fabric runs it
> seems to just ignore the CD, and tries to run local commands in the wrong
> directory.

This was one of the (many) changes in 1.0, whose changelog you should
definitely read/skim if you're upgrading from 0.9 as there are a
number of other potential pitfalls:

    http://docs.fabfile.org/en/1.0.1/changes/1.0.html

Specifically, what changed is that `cd` now only applies remotely, and
a different context manager, `lcd`, applies to local():

    
http://docs.fabfile.org/en/1.0.1/api/core/context_managers.html#fabric.context_managers.lcd

This was done to limit confusion for new users and to allow
flexibility that a wide-ranging `cd` simply was unable to provide.

HTH,
Jeff

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



reply via email to

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