fab-user
[Top][All Lists]
Advanced

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

Fwd: [Fab-user] RFC: Implementing a current working directory / path ref


From: Jeff Forcier
Subject: Fwd: [Fab-user] RFC: Implementing a current working directory / path refactoring feature
Date: Sat, 22 Nov 2008 11:32:53 -0500

Previous message, which I forwarded, was written by Christian, if that
wasn't obvious =) this below is the last email, from my perspective
again.


On Sat, Nov 22, 2008 at 11:25 AM, Christian Vest Hansen
<address@hidden> wrote:

> I think it should affect put().
>
> When you upload files, you generally do so because you want to run
> commands that work with/on them. A bit like this, for instance:
>
> cd('workdir')
> put('build/package.tar.gz', 'package.tar.gz') # saved inside the workdir
> run('tar -xzf package.tar.gz')

Yea, that's exactly the scenario I was envisioning in the case where
we do apply it to 'put'; so yes, let's do this.

> I think just normal 'cd' will do.
>
> Not only is the pain/gain ratio better, but the `with` idea
> practically mandates having both (the two-names vs.
> one-overloaded-name question notwithstanding), because we also want to
> support Python 2.4 as much as possible.

Sounds good. I'll write a patch sometime soon :) Thanks for the back-and-forth.

-Jeff




reply via email to

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