Class GitIgnoreStrategy
Ignores file paths based on the .gitignore specification
.
Inherited Members
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GitIgnoreStrategy : IgnoreStrategy
Syntax (vb)
Public Class GitIgnoreStrategy
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 gitIgnoreStrategy = new GitIgnoreStrategy("absoluteRootPath", new [] { "patterns" });
Synopsis
Constructors
GitIgnoreStrategy(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GitIgnoreStrategy(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
GitIgnoreStrategy(String, String[]) |
Methods
Add(String) | Adds another pattern. |
Ignores(String) | Determines whether a given file path should be ignored or not. |
Constructors
GitIgnoreStrategy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GitIgnoreStrategy(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GitIgnoreStrategy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GitIgnoreStrategy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
GitIgnoreStrategy(String, String[])
public GitIgnoreStrategy(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