Class library. LineMatchesPCheck
source · [−]Constructors
sourceconstructor
constructor
sourcenew (id: string, producer: Producer, match: string): LineMatchesPCheck
new (id: string, producer: Producer, match: string): LineMatchesPCheck
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): LineMatchesPCheck
(description: string): LineMatchesPCheck
sourcesetFailureInfo
setFailureInfo
source(failureInfo: string): LineMatchesPCheck
(failureInfo: string): LineMatchesPCheck
sourcesetIgnoreStartsWith
setIgnoreStartsWith
source(ignoreStartsWith: string): LineMatchesPCheck
(ignoreStartsWith: string): LineMatchesPCheck
Ignore lines starting with this string. Useful for comments in configs.
sourcesetInverted
setInverted
source(inverted?: boolean): LineMatchesPCheck
(inverted?: boolean): LineMatchesPCheck
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): LineMatchesPCheck
(remediation: Script): LineMatchesPCheck
Set remediation to run on apply mode.