def create_files_from_secret()

in artifacts/install.py [0:0]


def create_files_from_secret():
    """ Extracts files from the configuration secret and creates them on disk """
    print('Creating files from secret')
    for filename, contents in secret.items():
        print('Creating {}'.format(filename))
        if '/' in filename:
            os.makedirs(os.path.dirname(filename), exist_ok=True)
        with open(filename, 'w', encoding="utf-8") as file:
            file.write(contents)