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

Version Path
dev_tasks-1.0.37 lib/jsonlog.rb
dev_tasks-1.0.35 lib/jsonlog.rb
dev_tasks-1.0.34 lib/jsonlog.rb
dev_tasks-1.0.33 lib/jsonlog.rb
dev_tasks-1.0.31 lib/jsonlog.rb
dev_tasks-1.0.30 lib/jsonlog.rb
dev_tasks-1.0.29 lib/jsonlog.rb
dev_tasks-1.0.28 lib/jsonlog.rb
dev_tasks-1.0.12 lib/jsonlog.rb
dev_tasks-1.0.11 lib/jsonlog.rb
dev_tasks-1.0.10 lib/jsonlog.rb
dev_tasks-1.0.9 lib/jsonlog.rb