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
def pre_configure(srcdir=None, opts=None, rundir=None): srcdir, rundir = paths_to_pathlib([srcdir, rundir]) return get_rose_vars(srcdir=srcdir, opts=opts)
def test_paths_to_pathlib(paths, expect): assert paths_to_pathlib(paths) == expect