Sha256: 786581e9e81c88e89b9898a9de193278b3887f1214cbce114c1f80b579f30892
Contents?: true
Size: 363 Bytes
Versions: 16
Compression:
Stored size: 363 Bytes
Contents
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
Version data entries
16 entries across 16 versions & 1 rubygems