Commits

Mikhail Korobov committed 1151d19

Restore old 'fab push' options

  • Participants
  • Parent commits 8143f5b

Comments (0)

Files changed (1)

File fab_deploy/deploy.py

 
     Arguments:
 
-    * nodj_cmd.test - don't run dj_cmd.tests
-    * dj_cmd.syncdb - run dj_cmd.syncdb before code reloading
-    * dj_cmd.migrate - run dj_cmd.migrate before code reloading
-    * virtualenv.pip_update - run virtualenv.pip_update before code reloading
+    * test - don't run dj_cmd.tests
+    * syncdb - run dj_cmd.syncdb before code reloading
+    * migrate - run dj_cmd.migrate before code reloading
+    * pip_update - run virtualenv.pip_update before code reloading
     * norestart - do not reload source code
     '''
-    allowed_args = set(['force', 'nodj_cmd.test', 'dj_cmd.syncdb', 'dj_cmd.migrate', 'virtualenv.pip_update', 'norestart'])
+    allowed_args = set(['test', 'syncdb', 'migrate', 'pip_update', 'norestart'])
     for arg in args:
         if arg not in allowed_args:
             puts('Invalid argument: %s' % arg)
 
     vcs.push()
     utils.delete_pyc()
-    with cd('src/'+env.conf['INSTANCE_NAME']):
+    with cd('src/' + env.conf['INSTANCE_NAME']):
         vcs.up()
 
-    if 'virtualenv.pip_update' in args:
+    if 'pip_update' in args:
         virtualenv.pip_update(restart=False)
-    if 'dj_cmd.syncdb' in args:
+    if 'syncdb' in args:
         dj_cmd.syncdb()
-    if 'dj_cmd.migrate' in args:
+    if 'migrate' in args:
         dj_cmd.migrate()
     dj_cmd.compress()
     if 'norestart' not in args:
         apache.touch()
-    if 'nodj_cmd.test' not in args:
+    if 'test' not in args:
         dj_cmd.test()
 
 def undeploy():