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

Version Path
dev_tasks-1.0.38 lib/jsonlog.rb
dev_tasks-1.0.27 lib/jsonlog.rb
dev_tasks-1.0.26 lib/jsonlog.rb
dev_tasks-1.0.25 lib/jsonlog.rb
dev_tasks-1.0.24 lib/jsonlog.rb
dev_tasks-1.0.23 lib/jsonlog.rb
dev_tasks-1.0.22 lib/jsonlog.rb
dev_tasks-1.0.21 lib/jsonlog.rb
dev_tasks-1.0.20 lib/jsonlog.rb
dev_tasks-1.0.19 lib/jsonlog.rb
dev_tasks-1.0.18 lib/jsonlog.rb
dev_tasks-1.0.17 lib/jsonlog.rb
dev_tasks-1.0.16 lib/jsonlog.rb
dev_tasks-1.0.15 lib/jsonlog.rb
dev_tasks-1.0.14 lib/jsonlog.rb
dev_tasks-1.0.13 lib/jsonlog.rb