Sha256: 68ea931645a9408b330fa11016a38ff6775d821ff35408cc7094b92d1ec6d461
Contents?: true
Size: 343 Bytes
Versions: 12
Compression:
Stored size: 343 Bytes
Contents
require 'json' class JsonLog def initialize end def finalize name='DEV' ARGV.each do|a| name="#{name}.#{a}" end name="#{name}.json" FileUtils.mkdir("#{DEV[:dev_root]}/log") if !File.exists?("#{DEV[:dev_root]}/log") File.open("#{DEV[:dev_root]}/log/#{name}","w") do |f| f.write(JSON.pretty_generate(DEV)) end end end
Version data entries
12 entries across 12 versions & 1 rubygems