lib/yaml_parse.rb in forj-0.0.32 vs lib/yaml_parse.rb in forj-0.0.33
- old
+ new
@@ -30,6 +30,16 @@
YAML.load_file(path_to_yaml)
rescue => e
Logging.error(e.message)
end
end
+
+ def dump_values(string, path)
+ begin
+ File.open(path, 'w') do |out|
+ YAML.dump(string, out)
+ end
+ rescue => e
+ Logging.error(e.message)
+ end
+ end
end