本文整理汇总了Python中glusto.core.Glusto.load_configs方法的典型用法代码示例。如果您正苦于以下问题:Python Glusto.load_configs方法的具体用法?Python Glusto.load_configs怎么用?Python Glusto.load_configs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类glusto.core.Glusto
的用法示例。
在下文中一共展示了Glusto.load_configs方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUpClass
# 需要导入模块: from glusto.core import Glusto [as 别名]
# 或者: from glusto.core.Glusto import load_configs [as 别名]
def setUpClass(cls):
"""unittest standard setUpClass method
Runs before all test_ methods in the class
"""
print "Setting Up Class: %s" % cls.__name__
config = g.load_configs(["../examples/systems.yml",
"../examples/glusto.yml"])
g.update_config(config)
示例2: setUp
# 需要导入模块: from glusto.core import Glusto [as 别名]
# 或者: from glusto.core.Glusto import load_configs [as 别名]
def setUp(self):
"""unittest standard setUp method
Runs before each test_ method
"""
print "Setting Up: %s" % self.id()
config = g.load_configs(["../examples/systems.yml",
"../examples/glusto.yml"])
g.update_config(config)
self.masternode = g.config["nodes"][0]
self.client = g.config["clients"][0]
示例3: handle_configs
# 需要导入模块: from glusto.core import Glusto [as 别名]
# 或者: from glusto.core.Glusto import load_configs [as 别名]
def handle_configs(config_list):
"""Load default and user-specified configuration files"""
# load default config
g.log.info("Loading default configuration files.")
g.load_config_defaults()
# load user specified configs (can also override defaults)
if (config_list):
g.log.info("Loading user specified configuration files.")
config_files = config_list.split()
config = g.load_configs(config_files)
g.update_config(config)
示例4: setUpClass
# 需要导入模块: from glusto.core import Glusto [as 别名]
# 或者: from glusto.core.Glusto import load_configs [as 别名]
def setUpClass(cls):
"""unittest standard setUpClass method
Runs before all test_ methods in the class
"""
print "Setting Up Class: %s" % cls.__name__
config = g.load_configs(["../examples/systems.yml",
"../examples/glusto.yml"])
g.update_config(config)
cls.hosts = g.config['nodes']
cls.primary_host = g.config['nodes'][0]
cls.client = g.config["clients"][0]
cls.test_string = 'Go for the Glusto!'