class MutatorRails::ListMaker

Public Instance Methods

make_list() click to toggle source
# File lib/mutator_rails/list_maker.rb, line 9
def make_list
  list = []

  Dir.glob(Config.configuration.logroot + '**/*.log').each do |target_log|
    next unless File.exist?(target_log)

    begin
      list << MutationLog.new(target_log)
    rescue Exception => se
      # skip it
      puts "Error: #{se}"
    end
  end
  list.sort
end