lib/eol/scenario_loader.rb
# the last time the dumps were taken
the last time the dumps were taken
the last time the dumps were taken
def time_the_dumps_were_taken
      last_compiled = nil
      @all_connections.each do |conn|
        mysqldump_path = mysqldump_path_for_connection(conn)
        if File.exists?(mysqldump_path)
          this_dump_modified = File.mtime(mysqldump_path)
          if !last_compiled || this_dump_modified < last_compiled 
            last_compiled = File.mtime(mysqldump_path)
          end
        end
      end
      last_compiled
    end
def time_the_dumps_were_taken last_compiled = nil @all_connections . each do | conn | mysqldump_path = mysqldump_path_for_connection ( conn ) if File . exists? ( mysqldump_path ) this_dump_modified = File . mtime ( mysqldump_path ) if ! last_compiled || this_dump_modified < last_compiled last_compiled = File . mtime ( mysqldump_path ) end end end last_compiled end
the last time the dumps were taken
the last time the dumps were taken
# We want the earliest change.