Sha256: 07717975bbff9993f33b9cfe8a1b4064121773e90d687d67c69d823f8062eb33
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
module FSSM::Backends class Inotify def initialize @notifier = INotify::Notifier.new end def add_handler(handler, preload=true) @notifier.watch(handler.path.to_s, :all_events) do |event| handler.refresh(FSSM::Pathname.for(event.name)) end handler.refresh(nil, true) if preload end def run begin @notifier.run rescue Interrupt end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
haml-edge-2.3.150 | vendor/fssm/lib/fssm/backends/inotify.rb |