Beispiel #1
0
 def config(self):
     configpath = os.path.abspath(self.configfile)
     if not os.path.exists(configpath):
         log.error("Config '%s' doesn't exist." % configpath)
         sys.exit(1)
     config = Config(configpath, plugins=self.plugins)
     config.parse()
     return config
Beispiel #2
0
 def config(self):
     configpath = os.path.abspath(self.configfile)
     if not os.path.exists(configpath):
         log.error("Config '%s' doesn't exist." % configpath)
         sys.exit(1)
     config = Config(configpath, plugins=self.plugins)
     config.parse()
     return config
Beispiel #3
0
 def _create_config(self, contents, path=None):
     contents = StringIO(contents)
     config = Config(contents, path=path)
     config.add_massager(
         StartupScriptMassager('instance', 'startup_script'))
     return config.parse()
Beispiel #4
0
 def _create_config(self, contents, path=None):
     contents = StringIO(contents)
     config = Config(contents, path=path)
     config.add_massager(
         StartupScriptMassager('instance', 'startup_script'))
     return config.parse()