Angular Modernizer
    Preparing search index...

    Rollback manager that orchestrates backup and rollback operations.

    Combines file-level backups (BackupManager) with a git snapshot (GitIntegration) behind one interface for transformation safety.

    Index

    Constructors

    Methods

    • Clear all backups.

      Returns Promise<void>

    • Back up files before a transformation. Always writes file-level backups (with metadata on disk, so another RollbackManager finds them); inside a git repository it also records a git snapshot of the working tree and stores its commit with every backup. Nothing in the working tree, the index or the stash list changes.

      Parameters

      Returns Promise<BackupOperationResult>

    • Check if backup exists.

      Returns boolean

    • Restore files from their newest backup. Without a file list it restores the files of this instance's backups, or else of the newest backup group on disk (the last transform-code call). The configured strategy decides the source: file backup, git snapshot, or file backup first (auto).

      Parameters

      • Optionalfiles: string[]

      Returns Promise<RollbackOperationResult>