Skip to content

Commit

Permalink
Additional exclude configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchPierias committed May 12, 2019
1 parent 42a2600 commit 8f56eae
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/configManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ export interface LamingtonConfig {
eos: string;
keepAlive?: boolean;
outDir?: string,
exclude?: string | RegExp | Array<string|RegExp>
exclude?: Array<string>
}

/**
* Fetches and stores the latest EOS configuration images
* @author Kevin Brown <github.com/thekevinbrown>
* Manages Lamington configuration setup and caching
*/
export class ConfigManager {

Expand Down Expand Up @@ -168,4 +167,12 @@ export class ConfigManager {
static get outDir() {
return ConfigManager.config.outDir || CACHE_DIRECTORY;
}

/**
* Returns the array of excluded strings or patterns
* @author Mitch Pierias <github.com/MitchPierias>
*/
static get exclude() {
return ConfigManager.config.exclude || [];
}
}

0 comments on commit 8f56eae

Please sign in to comment.