lib/devpipeline_core/toolsupport.py
def tool_builder(component, key, tool_map, *args):
    """This helper function initializes a tool with the given args."""
    # pylint: disable=protected-access
    tool_name = component.get(key)
    if tool_name:
        tool_fn = tool_map.get(tool_name)
        if tool_fn:
            return tool_fn[0](*args)
        raise Exception("Unknown {} '{}' for {}".format(key, tool_name, component.name))
    raise MissingToolKey(key, component)
This helper function initializes a tool with the given args.
This helper function initializes a tool with the given args.
This helper function initializes a tool with the given args .
def tool_builder(component, key, tool_map, *args):
    tool_name = component.get(key)
    if tool_name:
        tool_fn = tool_map.get(tool_name)
        if tool_fn:
            return tool_fn[0](*args)
        raise Exception("Unknown {} '{}' for {}".format(key, tool_name, component.name))
    raise MissingToolKey(key, component)
def tool_builder ( component , key , tool_map , * args ) : tool_name = component . get ( key ) if tool_name : tool_fn = tool_map . get ( tool_name ) if tool_fn : return tool_fn [ 0 ] ( * args ) raise Exception ( "Unknown {} '{}' for {}" . format ( key , tool_name , component . name ) ) raise MissingToolKey ( key , component )
This helper function initializes a tool with the given args.
This helper function initializes a tool with the given args .
"""This helper function initializes a tool with the given args.""" # pylint: disable=protected-access
component
key
tool_map