Package io.jenkins.plugins.casc.yaml
Class YamlUtils
- java.lang.Object
-
- io.jenkins.plugins.casc.yaml.YamlUtils
-
public final class YamlUtils extends Object
- Author:
- Nicolas De Loof
-
-
Constructor Summary
Constructors Constructor Description YamlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Mapping
loadFrom(List<YamlSource> sources, ConfigurationContext context)
Load configuration-as-code model from a set of Yaml sources, merging documentsstatic org.yaml.snakeyaml.nodes.Node
merge(List<YamlSource> sources, ConfigurationContext context)
static org.yaml.snakeyaml.nodes.Node
read(YamlSource source, Reader reader, ConfigurationContext context)
static Reader
reader(YamlSource<?> source)
-
-
-
Field Detail
-
LOGGER
public static final Logger LOGGER
-
-
Method Detail
-
merge
public static org.yaml.snakeyaml.nodes.Node merge(List<YamlSource> sources, ConfigurationContext context) throws ConfiguratorException
- Throws:
ConfiguratorException
-
read
public static org.yaml.snakeyaml.nodes.Node read(YamlSource source, Reader reader, ConfigurationContext context) throws IOException
- Throws:
IOException
-
reader
public static Reader reader(YamlSource<?> source) throws IOException
- Throws:
IOException
-
loadFrom
public static Mapping loadFrom(List<YamlSource> sources, ConfigurationContext context) throws ConfiguratorException
Load configuration-as-code model from a set of Yaml sources, merging documents- Throws:
ConfiguratorException
-
-