示例#1
0
文件: conftest.py 项目: mjura/skuba
def platform(conf, target):
    platform = Platform.get_platform(conf, target)
    return platform
示例#2
0
def provision(options):
    Platform.get_platform(options.conf, options.platform).provision(
        num_master=options.master_count, num_worker=options.worker_count)
示例#3
0
def get_logs(options):
    platform_logging_errors = Platform.get_platform(
        options.conf, options.platform).gather_logs()

    if platform_logging_errors:
        raise Exception("Failure(s) while collecting logs")
示例#4
0
def cleanup(options):
    Platform.get_platform(options.conf, options.platform).cleanup()
    Skuba.cleanup(options.conf)