theoden avatar theoden committed 013dd44

1.9 deploy.undeploy changed name to deploy.remove

Comments (0)

Files changed (2)

fab_deploy/deploy.py

 
 __all__ = ['full_deploy', 'deploy_project', 'make_clone',
            'update_django_config', 'up', 'setup_web_server', 'push',
-           'undeploy']
+           'remove']
 
 @task
 def full_deploy():
         dj_cmd.test()
 
 @task
-def undeploy(confirm=True):
+def remove(confirm=True):
     """ Shuts site down. This command doesn't clean everything, e.g.
     user data (database, backups) is preserved. """
 

fab_deploy_tests/tests/deploy.py

 from fabric.api import *
 from fabtest import fab, vbox_urlopen, FabricAbortException
 from fab_deploy.utils import run_as
-from fab_deploy.deploy import deploy_project, push, undeploy
+from fab_deploy.deploy import deploy_project, push, remove
 from fab_deploy.db import mysql, postgres, postgis
 from fab_deploy import db
 from fab_deploy.webserver import apache
         fab(push, 'update_r', 'syncdb')
         self.assertResponse(url, 'foo2')
 
-        # check that updeploy disables the site
+        # check that remove disables the site
         # TODO: more undeploy tests
-        fab(undeploy, confirm=False)
+        fab(remove, confirm=False)
         self.assertHttpError(url)
 
         # deploying project again should be possible
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.