Commits

Vladimir Mihailenco committed 97fa7e0

Move public api to api.py file to prevent accident module import using import *

  • Participants
  • Parent commits 7a4afcc

Comments (0)

Files changed (4)

fab_deploy_ext/__init__.py

-from fab_deploy_ext.file import *
-from fab_deploy_ext.ssh import *
-from fab_deploy_ext.maintenance import *
-from fab_deploy_ext.rabbitmq import *
-from fab_deploy_ext.celery import *
-from fab_deploy_ext.supervisor import *

fab_deploy_ext/api.py

+from fab_deploy_ext.file import *
+from fab_deploy_ext.ssh import *
+from fab_deploy_ext.maintenance import *
+from fab_deploy_ext.rabbitmq import *
+from fab_deploy_ext.celery import *
+from fab_deploy_ext.supervisor import *

fab_deploy_ext/celery.py

     sudo('mkdir --parents /var/log/supervisord')
     sudo('mkdir --parents /var/log/celery')
 
+
 @utils.inside_project
 def celeryctl(command=''):
     run('./manage.py celeryctl %s' % command)

fab_deploy_ext/supervisor.py

 from fabric.api import sudo
 from fabric.api import cd
+from fabric.api import env
 
 from fab_deploy import utils