lib/rivendell/import/config_loader.rb in rivendell-import-0.0.4 vs lib/rivendell/import/config_loader.rb in rivendell-import-0.0.5
- old
+ new
@@ -17,15 +17,15 @@
return unless auto_reload?
callback = Proc.new do |modified, added, removed|
if modified.include? absolute_path
Rivendell::Import.logger.info "Configuration changed, reload it"
- load
+ load
end
end
Rivendell::Import.logger.info "Listen to config file changes (#{file})"
- Listen.to(directory).filter(/^#{basename}$/).change(&callback).start(false)
+ Listen.to(directory).filter(/^#{basename}$/).change(&callback).start
end
def listen_file_with_inotify
require 'rb-inotify'