lib/log2mail/watcher.rb in log2mail-0.0.1.pre3 vs lib/log2mail/watcher.rb in log2mail-0.0.1.pre4
- old
+ new
@@ -7,10 +7,10 @@
# attr_accessor :logfile, :maxbufsize
# attr_reader :pattern
# end
def initialize( config, sleeptime )
- fail Error, 'Invalid configuration.' unless config.instance_of?(Log2mail::Config)
+ fail Error, 'Invalid configuration.' unless config.instance_of?(Config::ConfigFileHandler)
@file_patterns = config.file_patterns
@files = @file_patterns.keys.map {|f| Log2mail::File.new(f, @file_patterns[f] ) }
@sleeptime = sleeptime
@report_queue = []