getOptionsFromFile method

YamlMap getOptionsFromFile (
  1. File file
)

Provide the options found in file. Recursively merge options referenced by an include directive and remove the include directive from the resulting options map. Return an empty options map if the file does not exist.

Implementation

YamlMap getOptionsFromFile(File file) {
  return getOptionsFromSource(FileSource(file));
}