Sha256: ea7a8f2c6c72a2a65c2ddf5f26859c87ab75d8bb152a964b69ca71496e377bb7
Contents?: true
Size: 346 Bytes
Versions: 12
Compression:
Stored size: 346 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
12 entries across 12 versions & 1 rubygems