class Stepdown::YamlWriter

Public Class Methods

write(stats) click to toggle source
# File lib/stepdown/yaml_writer.rb, line 5
def self.write(stats)
  file_name = Date.today.strftime("%Y%m%d") + ".yml"
  file = File.new(File.join(Stepdown.output_directory, file_name), "w+")

  YAML.dump(stats.to_h, file)
  file.close
end