Added a hard reset command to fabric

This commit is contained in:
2010-10-29 17:26:05 +01:00
parent ed45e4abac
commit d2a0a7ad3e

10
fabfile.py vendored
View File

@@ -98,6 +98,16 @@ def update_repo():
with cd('%(path)s/dreddit-auth/' % env):
run('git pull')
def reset_repo():
"""
Does a hard reset on the remote repo
"""
require('hosts')
require('path')
with cd('%(path)s/dreddit-auth/' % env):
run('git reset --hard')
def migrate():
"""