Sha256: 786581e9e81c88e89b9898a9de193278b3887f1214cbce114c1f80b579f30892

Contents?: true

Size: 363 Bytes

Versions: 16

Compression:

Stored size: 363 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

16 entries across 16 versions & 1 rubygems

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