Class DockerIgnoreStrategy
Ignores file paths based on the .dockerignore specification.
Inherited Members
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.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(string, string[]) | Ignores file paths based on the |
Methods
| Add(string) | Adds another pattern. |
| CompletelyIgnores(string) | Determines whether a given directory path should be ignored and have all of its children ignored. |
| Ignores(string) | Determines whether a given file path should be ignored or not. |
Constructors
DockerIgnoreStrategy(string, string[])
Ignores file paths based on the .dockerignore specification.
public DockerIgnoreStrategy(string absoluteRootPath, string[] patterns)
Parameters
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" });
Methods
Add(string)
Adds another pattern.
public override void Add(string pattern)
Parameters
- pattern string
Overrides
Remarks
Params: pattern the pattern to add
CompletelyIgnores(string)
Determines whether a given directory path should be ignored and have all of its children ignored.
public override bool CompletelyIgnores(string absoluteDirectoryPath)
Parameters
- absoluteDirectoryPath string
absolute directory path to be assessed against the pattern.
Returns
true if the directory and all of its children should be ignored
Overrides
Remarks
ExampleMetadata: fixture=_generated
Ignores(string)
Determines whether a given file path should be ignored or not.
public override bool Ignores(string absoluteFilePath)
Parameters
- absoluteFilePath string
absolute file path to be assessed against the pattern.
Returns
true if the file should be ignored
Overrides
Remarks
ExampleMetadata: fixture=_generated