Package io.jenkins.plugins.casc.yaml
Class YamlUtils
java.lang.Object
io.jenkins.plugins.casc.yaml.YamlUtils
- Author:
- Nicolas De Loof
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
LOGGER
-
-
Constructor Details
-
YamlUtils
public YamlUtils()
-
-
Method Details
-
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
- 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
-