fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] using fabric.operations.get with "with cd(folder)" fails


From: Jeff Forcier
Subject: Re: [Fab-user] using fabric.operations.get with "with cd(folder)" fails
Date: Wed, 16 Sep 2009 10:05:48 -0400

Hi Aljosa,

get() and put() actually don't take cd() into account at this time --
only run/sudo and anything utilizing them. I'll make a ticket, though,
since I think get/put probably can be updated to use cd().

I will update the docs to make this more obvious in the meantime.
Apologies for the mixup!

-Jeff

On Wed, Sep 16, 2009 at 9:50 AM, Aljosa Mohorovic
<address@hidden> wrote:
> i have a command that combines "with cd" and "get" but it fails.
> any idea why?
>
> Aljosa Mohorovic
>
> error:
> --------------------------------
> [myhost] download: data-2009-09-16T15:41:52.644240.json <-
> data-2009-09-16T15:41:52.644240.json
>
> Fatal error: get() encountered an exception while downloading
> 'data-2009-09-16T15:41:52.644240.json'
>
> Underlying exception message:
>    No such file
>
> Aborting.
> --------------------------------
>
> code:
> --------------------------------
>    with cd(folder):
>        pyenv = ". profile;"
>        date = datetime.now().isoformat()
>        file = "data-%s.json" % date
>        run("%s python portal/manage.py dumpdata > %s" % (pyenv, file))
>        get(file, file)
> --------------------------------
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>




reply via email to

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