module Jerakia::Datasource::File::Yaml

Constants

EXTENSION

Public Instance Methods

convert(data) click to toggle source
# File lib/jerakia/datasource/file/yaml.rb, line 6
 def convert(data)
   return {} if data.empty?
   begin
     YAML.load(data)
   rescue Psych::SyntaxError => e
     raise Jerakia::FileParseError, "Error parsing YAML document: #{e.message}"
   end

end