Options
All
  • Public
  • Public/Protected
  • All
Menu

The Change Detector Class is used to build and maintain a snapshot of code changes between deployments. If there are no changes, Mira will not perform a deployment.

Mira uses the .mira.snapshot file in the root of the application folder to track changes. A file is considered changed if its time stamp is different to the one listed in the snapshot file.

internal

Hierarchy

  • ChangeDetector

Index

Constructors

constructor

Properties

defaultSnapshotFilePath

defaultSnapshotFilePath: string

The full filename path for the snapshot file.

rootPath

rootPath: string

The root path where the snapshot file can be found or stored.

snapshotFile

snapshotFile: string = ".mira.snapshot"

The default file name for the snapshot file.

Methods

filesChanged

  • filesChanged(): Promise<boolean>

getHash

  • getHash(value: string): string

getSnapshot

  • getSnapshot(): Promise<FileData | null>

run

  • run(): Promise<boolean>

takeSnapshot

  • takeSnapshot(outputFile: string): Promise<null>

Legend

  • Constructor
  • Property
  • Method
  • Constructor
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Private property
  • Private method
  • Static property
  • Static method

Generated using TypeDoc