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