php7.py 539 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. dever-manage tools
  5. name:php.py
  6. author:rabin
  7. """
  8. from core import *
  9. class Php(object):
  10. path = 'src/php/'
  11. share = '/share/lib/php'
  12. @classmethod
  13. def init(self):
  14. method = Core.getMethod(Php_Action, Args.action)
  15. method()
  16. class Php_Action(object):
  17. @staticmethod
  18. def install():
  19. Php_Install.install(Args.name)
  20. print 'install '+Args.name+':yes'
  21. class Php_Install(object):
  22. @staticmethod
  23. def libevent(name):
  24. Core.popen('php.install ' + name, True)
  25. print 'finished'