Sha256: 55a19e6ff1c26617d6c9e4035d2d6edef381b92841661e4a504deaaf918f1056
Contents?: true
Size: 289 Bytes
Versions: 12
Compression:
Stored size: 289 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('log') if !File.exists?('log') File.open("log/#{name}","w") do |f| f.write(JSON.pretty_generate(DEV)) end end end
Version data entries
12 entries across 12 versions & 1 rubygems