michaelcontento/revolver — pull request #4 by janpieper (2012-04-07 11:08:17+00:00)
Title: skip creating current dir

We must not create the "current" directory. It will be linked during deployment.

[jan@gullinborsti] run: rm -f -r /home/jan/LitGreip/releases/20120407T104534Z
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 712, in main
*args, **kwargs
File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 298, in execute
multiprocessing
File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 197, in _execute
return task.run(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 112, in run
return self.wrapped(*args, **kwargs)
File "/home/jan/Workspace/Private/LitGreip/fabfile.py", line 17, in deploy
dp.run()
File "/usr/local/lib/python2.7/dist-packages/revolver/project.py", line 46, in run
self._activate()
File "/usr/local/lib/python2.7/dist-packages/revolver/project.py", line 97, in _activate
file.link(self.folders["releases.current"], self.folders["current"])
File "/usr/local/lib/python2.7/dist-packages/cuisine.py", line 457, in file_link
raise Exception("Destination already exists and is not a link: %s" % (destination))
Exception: Destination already exists and is not a link: /home/jan/LitGreip/current
Disconnecting from gullinborsti... done.