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

Version Path
dev_tasks-1.0.8 lib/jsonlog.rb
dev_tasks-1.0.7 lib/jsonlog.rb
dev_tasks-1.0.6 lib/jsonlog.rb
dev_tasks-1.0.5 lib/jsonlog.rb
dev_tasks-1.0.4 lib/jsonlog.rb
dev_tasks-1.0.3 lib/jsonlog.rb
dev_tasks-1.0.2 lib/jsonlog.rb
dev_tasks-1.0.1 lib/jsonlog.rb
dev_tasks-0.0.167 lib/jsonlog.rb
dev_tasks-1.0.0 lib/jsonlog.rb
dev_tasks-0.0.166 lib/jsonlog.rb
dev_tasks-0.0.164 lib/jsonlog.rb