コード例 #1
0
def _get_new_plancontext(machine_name, ignore_disabled=True):
    server = host.Host(hostname=machine_name,
                       platform="x86_64-linux",
                       version="suse11")

    context = plan.PlanContext(server=server, ignore_disabled=ignore_disabled)
    context.register_action("build", build_action)
    return context
コード例 #2
0
ファイル: main_test.py プロジェクト: piratos/e3-core
def _get_new_plancontext(machine_name):
    server = host.Host(hostname=machine_name,
                       platform='x86_64-linux',
                       version='suse11')

    def build(spec, build=None, host=None, target=None):
        return 'build ' + spec

    context = plan.PlanContext(server=server)
    context.register_action('build', build)
    return context