require 'yaml' class YamlLog def initialize end def finalize name='DEV' ARGV.each do|a| name="#{name}.#{a}" end name="#{name}.yml" FileUtils.mkdir('log') if !File.exists?('log') File.open("log/#{name}","w") do |f| f.write(DEV.to_yaml) end end end