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