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. |
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
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