lib/oddb2xml/util.rb in oddb2xml-1.7.9 vs lib/oddb2xml/util.rb in oddb2xml-1.8.0

- old
+ new

@@ -1,8 +1,14 @@ module Oddb2xml Backup = "#{Dir.pwd}/data/download" @options = {} - + + def Oddb2xml.log(msg) + return unless @options[:log] + $stdout.puts "#{Time.now.strftime("%Y-%m-%d %H:%M:%S")}: #{msg}" + $stdout.flush + end + def Oddb2xml.save_options(options) @options = options end def Oddb2xml.skip_download(file)