@@ 30,7 30,7 @@ def get_releases_list(release_dir=None):
def fail_cleanup(release_dir=None):
'''
If your VERY LAST deploy failed, call this to clean up the
- mess left behind. It will only remove the most recent
+ mess left behind. It will only remove the most recent
release directory. BE CAREFUL USING THIS.
'''
release_dir = get_release_dir(release_dir)
@@ 59,7 59,7 @@ def make_release_directory(release=None)
@task
def remove_old_releases(release_dir=None):
'''
- Remove oldest releases past the ammount passed
+ Remove oldest releases past the ammount passed
in with the "num_releases" variable. Default 5.
'''
opts = get_env('num_releases')
@@ 114,7 114,7 @@ def rollback_version(version, release_di
'''
opts = get_env('env_path')
env_path = opts['env_path']
-
+
releases = get_releases_list(release_dir)
if version not in releases:
command.abort('Version "%s" is not a deployed release!' % version)
@@ 183,9 183,9 @@ def install_requirements(req_path='./req
cmd += ' install -r %s' % req_path
if cache is not None:
- # If cache directory doesn't exist, pip should
+ # If cache directory doesn't exist, pip should
# create it for you
- cmd += ' --download-cache=%s' % cache
+ cmd += ' --cache-dir=%s' % cache
with command.cd(virtual_env_path):
command.run(cmd)