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
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