def __init__(self, core, datastore): Plugin.__init__(self, core, datastore) if self.__vcs_metadata_path__: self.vcs_path = os.path.join(Bcfg2.Options.setup.vcs_root, self.__vcs_metadata_path__) if not os.path.exists(self.vcs_path): raise PluginInitError("%s is not present" % self.vcs_path) else: self.vcs_path = None
def __init__(self, core): Plugin.__init__(self, core) if self.__vcs_metadata_path__: self.vcs_path = os.path.join(Bcfg2.Options.setup.vcs_root, self.__vcs_metadata_path__) if not os.path.exists(self.vcs_path): raise PluginInitError("%s is not present" % self.vcs_path) else: self.vcs_path = None
def __init__(self, core, datastore): Plugin.__init__(self, core, datastore) if core.setup['vcs_root']: self.vcs_root = core.setup['vcs_root'] else: self.vcs_root = datastore if self.__vcs_metadata_path__: self.vcs_path = os.path.join(self.vcs_root, self.__vcs_metadata_path__) if not os.path.exists(self.vcs_path): raise PluginInitError("%s is not present" % self.vcs_path) else: self.vcs_path = None