fab-user
[Top][All Lists]
Advanced

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

[Fab-user] doc/samples: question on rollback method


From: Carsten Kraus
Subject: [Fab-user] doc/samples: question on rollback method
Date: Tue, 14 Oct 2008 17:21:58 +0200

Hi folks,

am new to fabric and to Linux in general. 
I´m working with the sample provided in /doc/samples as of commit cc336b5a8210e6b34082aeebef113b6e8d4431eb. (How do U reference git 'revisions' btw? : )

In the sample´s rollback() there is sth like:
sudo(
        "export PREV=$(ls -1 %(someProjectVar)s|tail -1);" +
...
)
..which sets the var $PREV for later use.

However, for me this isnt working - on my box(Ubuntu 8.04 Desktop) the var $PREV will just be empty.
I even tried
run(        
        "export FOO='bar';" + 
        "echo $FOO;"
)
This will also result in an empty 'out:' when I run it from fab - when I run this being logged in on the target machine with the same user, it´s working fine.

Is there an alternative, how I could store eg. the most recent foldername in a var for rolling back purposes?

Apologies, if this is off-topic & thx for any pointer!!
Carsten





reply via email to

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