Sha256: ea7a8f2c6c72a2a65c2ddf5f26859c87ab75d8bb152a964b69ca71496e377bb7

Contents?: true

Size: 346 Bytes

Versions: 12

Compression:

Stored size: 346 Bytes

Contents

require 'yaml'

class YamlLog
	def initialize
	end

	def finalize
		name='DEV'
		ARGV.each do|a|
			name="#{name}.#{a}"
		end
		name="#{name}.yml"
		FileUtils.mkdir("#{Environment.dev_root}/log") if !File.exists?("#{Environment.dev_root}/log")
		File.open("#{Environment.dev_root}/log/#{name}","w") do |f|
  			f.write(DEV.to_yaml)
		end
	end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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