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