Ejemplo n.º 1
0
def main_impl(args, mstdout, mstderr):
    config, mods = MainHelper.main_setup(args, mstdout, mstderr)
    rs = RequirementSet(mods, config)
    command_line_args = config.get_value('general.command_line_arguments')
    return rs.read_from_filesystem(command_line_args[0]) \
        and rs.normalize_dependencies() \
        and rs.write_to_filesystem(command_line_args[0])
Ejemplo n.º 2
0
def main_impl(args, mstdout, mstderr):
    opts, config, mods = MainHelper.main_setup(args, mstdout, mstderr,
                                               parse_cmd_line_opts)
    rs = RequirementSet(mods, opts, config)
    return rs.read_from_filesystem(opts.args[0]) \
        and rs.normalize_dependencies() \
        and rs.write_to_filesystem(opts.args[0])
Ejemplo n.º 3
0
def main_impl(args, mstdout, mstderr):
    '''The real implementation of the main function:
       o get config
       o set up logging
       o do everything'''
    config, input_mods = MainHelper.main_setup(args, mstdout, mstderr)
    configure_logging(config, mstderr)
    return execute_cmds(config, input_mods, mstdout, mstderr)
Ejemplo n.º 4
0
def main_impl(args, mstdout, mstderr):
    '''The real implementation of the main function:
       o get config
       o set up logging
       o do everything'''
    config, input_mods = MainHelper.main_setup(args, mstdout, mstderr)
    configure_logging(config)
    return execute_cmds(config, input_mods, mstdout, mstderr)
Ejemplo n.º 5
0
def main_impl(args, mstdout, mstderr):
    tracer.debug("Called.")
    config, mods = MainHelper.main_setup(args, mstdout, mstderr)

    file_system_if = FileSystem(config)
    object_cache = ObjectCache()

    rs = RequirementSet(config)
    command_line_args = config.get_rvalue('general.command_line_arguments')

    rs.read_requirements(file_system_if, None, mods, object_cache)

    return rs.normalize_dependencies() \
        and rs.write_to_filesystem(command_line_args[0])
Ejemplo n.º 6
0
def main_impl(args, mstdout, mstderr):
    tracer.debug("Called.")
    config, mods = MainHelper.main_setup(args, mstdout, mstderr)

    file_system_if = FileSystem(config)
    object_cache = ObjectCache()

    rs = RequirementSet(config)
    command_line_args = config.get_rvalue('general.command_line_arguments')

    rs.read_requirements(file_system_if, None, mods, object_cache)
    
    return rs.normalize_dependencies() \
        and rs.write_to_filesystem(command_line_args[0])
Ejemplo n.º 7
0
def main_func(args, mstdout, mstderr):
    """The 'real' main function.

    Sets up everything, reads in the requirements and
    writes out everything.
    """
    tracer.debug("Called.")
    config, mods = MainHelper.main_setup(args, mstdout, mstderr)

    file_system_if = FileSystem(config)
    object_cache = ObjectCache()

    req_set = RequirementSet(config)
    command_line_args = config.get_rvalue('general.command_line_arguments')

    req_set.read_requirements(file_system_if, None, mods, object_cache)
    return req_set.normalize_dependencies() \
        and req_set.write_to_filesystem(command_line_args[0])
Ejemplo n.º 8
0
def main_func(args, mstdout, mstderr):
    """The 'real' main function.

    Sets up everything, reads in the requirements and
    writes out everything.
    """
    tracer.debug("Called.")
    config, mods = MainHelper.main_setup(args, mstdout, mstderr)

    file_system_if = FileSystem(config)
    object_cache = ObjectCache()

    req_set = RequirementSet(config)
    command_line_args = config.get_rvalue('general.command_line_arguments')

    req_set.read_requirements(file_system_if, None, mods, object_cache)
    return req_set.normalize_dependencies() \
        and req_set.write_to_filesystem(command_line_args[0])
Ejemplo n.º 9
0
def main_impl(args, mstdout, mstderr):
    opts, config, mods = MainHelper.main_setup(args, mstdout, mstderr,
                                               parse_cmd_line_opts)
    return execute_cmds(opts, config, mods, mstdout, mstderr)
Ejemplo n.º 10
0
def main_impl(args, mstdout, mstderr):
#    init_logging()
    config, input_mods = MainHelper.main_setup(args, mstdout, mstderr)
    return execute_cmds(config, input_mods, mstdout, mstderr)