Class library. FileIncludesCheck
source · [−]Expand description
Check if the file contains the following buffer.
Constructors
sourceconstructor
constructor
sourcenew (id: any, filepath: any, targetContent: Buffer): FileIncludesCheck
new (id: any, filepath: any, targetContent: Buffer): FileIncludesCheck
All elements have an id associated to encourage short unique ids for all elements.
Properties
sourcestate
state
sourcestate: ElementState = ElementState.Inactive
state: ElementState = ElementState.Inactive
Current state of the element.
Methods
sourcesetDescription
setDescription
source(description: string): FileIncludesCheck
(description: string): FileIncludesCheck
sourcesetFailureInfo
setFailureInfo
source(failureInfo: string): FileIncludesCheck
(failureInfo: string): FileIncludesCheck
sourcesetInverted
setInverted
source(inverted?: boolean): FileIncludesCheck
(inverted?: boolean): FileIncludesCheck
Invert the results. For example if the check is to check if a package is installed inverting it will make sure is not.
sourcesetRemediation
setRemediation
source(remediation: Script): FileIncludesCheck
(remediation: Script): FileIncludesCheck
Set remediation to run on apply mode.