ArtifactRotate#

class wattson.services.artifact_rotate.ArtifactRotate(file_name: Path, on_rotate_callback: Callable[[ArtifactRotate], Any] | None = None, is_folder: bool = False, detect_existing: bool = True)#

Bases: object

Methods

__init__

get_base_name

get_current

is_empty

rotate

Rotates all existing artifacts by one position and optionally calls the on_rotate_callback :return:

set_rotate_callback

__init__(file_name: Path, on_rotate_callback: Callable[[ArtifactRotate], Any] | None = None, is_folder: bool = False, detect_existing: bool = True)#
rotate()#

Rotates all existing artifacts by one position and optionally calls the on_rotate_callback :return: