Class: MutatorRails::ListMaker

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat
Defined in:
lib/mutator_rails/list_maker.rb

Instance Method Summary collapse

Instance Method Details

#make_listObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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