Class GlobIgnoreStrategy
Ignores file paths based on simple glob patterns.
Inherited Members
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GlobIgnoreStrategy : IgnoreStrategy
Syntax (vb)
Public Class GlobIgnoreStrategy
Inherits IgnoreStrategy
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var globIgnoreStrategy = new GlobIgnoreStrategy("absoluteRootPath", new [] { "patterns" });
Synopsis
Constructors
GlobIgnoreStrategy(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GlobIgnoreStrategy(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
GlobIgnoreStrategy(String, String[]) |
Methods
Add(String) | Adds another pattern. |
Ignores(String) | Determines whether a given file path should be ignored or not. |
Constructors
GlobIgnoreStrategy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GlobIgnoreStrategy(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GlobIgnoreStrategy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GlobIgnoreStrategy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
GlobIgnoreStrategy(String, String[])
public GlobIgnoreStrategy(string absoluteRootPath, string[] patterns)
Parameters
- absoluteRootPath System.String
- patterns System.String[]
Methods
Add(String)
Adds another pattern.
public override void Add(string pattern)
Parameters
- pattern System.String
Overrides
Remarks
Params: pattern the pattern to add
Ignores(String)
Determines whether a given file path should be ignored or not.
public override bool Ignores(string absoluteFilePath)
Parameters
- absoluteFilePath System.String
absolute file path to be assessed against the pattern.
Returns
System.Boolean
true
if the file should be ignored