Example #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
Example #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
Example #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()
Example #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()