fab-user
[Top][All Lists]
Advanced

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

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


From: Aljosa Mohorovic
Subject: [Fab-user] using fabric.operations.get with "with cd(folder)" fails
Date: Wed, 16 Sep 2009 15:50:58 +0200

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)
--------------------------------




reply via email to

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