adding new ceedling test project
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
require 'yaml'
|
||||
require 'erb'
|
||||
|
||||
|
||||
class YamlWrapper
|
||||
|
||||
def load(filepath)
|
||||
return YAML.load(ERB.new(File.read(filepath)).result)
|
||||
end
|
||||
|
||||
def dump(filepath, structure)
|
||||
File.open(filepath, 'w') do |output|
|
||||
YAML.dump(structure, output)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user