lib/nera/nera_db_folders.rb in nera-0.2.0 vs lib/nera/nera_db_folders.rb in nera-0.2.1

- old
+ new

@@ -35,11 +35,11 @@ Dir.glob( "#{@db_folder}/Simulator_classes/*.rb").each do |lib| require lib end # logger instance - @logger = Logger.new( "#{@db_folder}/Tables/logfile.txt", 8) + @logger = Logger.new( path_to_log_file, 8) @logger.level = Logger::INFO end def valid_db?( fold) return false unless FileTest.directory?( fold) @@ -234,9 +234,13 @@ return @db_folder + "Tables/finished_jobs.yml" end def path_to_hosts_yaml return @db_folder + "Tables/hosts.yml" + end + + def path_to_log_file + return @db_folder + "Tables/logfile.txt" end end end