Exemple #1
0
 def __init__(self, config={}):
     self.config = config
     plugin_path = self._get_config(self.PLUGIN_PATH)
     if not plugin_path:
         plugin_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'plugins')
     self.plugin_path = plugin_path
     self.plugin_rgty = plugin.PluginRegistry(self.plugin_path)
 def __init__(self, config={}):
     self.config = config
     plugin_path = self.config.get(self.PLUGIN_PATH, None)
     if not plugin_path:
         plugin_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'plugins')
     self.plugin_path = plugin_path
     self.plugin_rgty = plugin.PluginRegistry(self.plugin_path)
     self.init_command = None
     self.uuid = None
 def __init__(self):
     self.plugin_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'plugins')
     self.plugin_rgty = plugin.PluginRegistry(self.plugin_path)
     self.properties = []
     self.properties_map = {}
     self.template_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'property-templates')
     self.parser = argparse.ArgumentParser(prog='zstack-setting', description="zstack setting tool",
                                           formatter_class=argparse.ArgumentDefaultsHelpFormatter)
     self.subparsers = self.parser.add_subparsers(title='commands', metavar='')
     self.settting_command = self.subparsers.add_parser('setting', help="configure zstack management", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
     self.settting_command.set_defaults(func=self._setting)
     self.settings = []
     
     self._create_backup_folder()
Exemple #4
0
 def __init__(self):
     self.plugin_path = os.path.join(
         os.path.dirname(os.path.realpath(__file__)), 'plugins')
     self.plugin_rgty = plugin.PluginRegistry(self.plugin_path)