Exemplo n.º 1
0
def post_install(srcdir=None, opts=None, rundir=None):
    if not rose_config_exists(srcdir, opts):
        return False
    srcdir, rundir = paths_to_pathlib([srcdir, rundir])
    results = {}
    copy_config_file(srcdir=srcdir, rundir=rundir)
    results['record_install'] = record_cylc_install_options(srcdir=srcdir,
                                                            opts=opts,
                                                            rundir=rundir)
    results['fileinstall'] = rose_fileinstall(srcdir=srcdir,
                                              opts=opts,
                                              rundir=rundir)
    # Finally dump a log of the rose-conf in its final state.
    if results['fileinstall']:
        dump_rose_log(rundir=rundir, node=results['fileinstall'])

    return results
Exemplo n.º 2
0
def pre_configure(srcdir=None, opts=None, rundir=None):
    srcdir, rundir = paths_to_pathlib([srcdir, rundir])
    return get_rose_vars(srcdir=srcdir, opts=opts)
Exemplo n.º 3
0
def test_paths_to_pathlib(paths, expect):
    assert paths_to_pathlib(paths) == expect