Ejemplo n.º 1
0
 def remove(self, app_name):
     app = apps.get(app_name)
     if app != None and hasattr(app, "remove"):
         app.remove()
     else:
         print("Unsupported app: %s" % app_name)
         sys.exit(1)
Ejemplo n.º 2
0
 def env_del(self, app_name):
     app = apps.get(app_name)
     if app != None and hasattr(app, "env_del"):
         app.env_del()
     else:
         print("Unsupported app: %s" % app_name)
         sys.exit(1)
Ejemplo n.º 3
0
 def install(self, app_name):
     app = apps.get(app_name)
     if app != None and hasattr(app, "install"):
         app.install()
     else:
         print("Unsupported app: %s" % app_name)
         sys.exit(1)