In package com.cdsap.talaiot.configuration
class com.cdsap.talaiot.configuration.IgnoreWhenConfiguration
Configuration for the ignoreWhen property. Used in General Talaiot configuration and TaskDependencyGraph. It expects an environment Name and Value variables. In some scenarios we want to ignore the execution of the Publishers, for instance we don't want to execute it in CI environments. We can define this ignore rule: ignoreWhen
Fields
var envName: String
name of the environment variable or property project
var envValue: String
value of the environment variable or property project
Constructors
constructor(project: )
Configuration for the ignoreWhen property. Used in General Talaiot configuration and TaskDependencyGraph. It expects an environment Name and Value variables. In some scenarios we want to ignore the execution of the Publishers, for instance we don't want to execute it in CI environments. We can define this ignore rule: ignoreWhen
-
project:
Methods
fun shouldIgnore(): Boolean
Given a name and value not empty it will check if: 1st: there is an environment variable defined with the same name, in that case will check if the value matches. 2nd: in case there is no environment variable it will check if there is one property in the project with the given name, in that case will check if the value matches
- No parameters