Skip to main content

Module action

Module action 

Source
Expand description

This module contains the LinkAction that creates a new symlink when executed

Structs§

LinkAction
LinkAction creates a new symlink path that points to target.

Constants§

CREATE_PARENT_DIRS_SETTING
Create parent dirs if they don’t exist
FORCE_SETTING
Force setting, replaces any other file or directory
IGNORE_MISSING_TARGET_SETTING
Create the symlink even if the target file does not exist
PATH_SETTING
Path setting (path of the symlink)
RELINK_SETTING
Relink setting, if true the action relinks an existing symlink (applies if force is false)
RESOLVE_SYMLINK_TARGET_SETTING
Resolves the target if it is a symlink and uses the final target file as the target.
TARGET_SETTING
Target setting (path to the file the symlink points to)

Functions§

default_settings
Initialize the defaults for the LinkAction.
parse_action
Static parsing function to build a LinkAction from YAML and settings context

Type Aliases§

FakeLinkAction
A Fake create action that works on a fake test filesystem.
NativeLinkAction
A native create action that works on the real filesystem.