Module: Watchcat
- Defined in:
- lib/watchcat.rb,
lib/watchcat/kind.rb,
lib/watchcat/event.rb,
lib/watchcat/client.rb,
lib/watchcat/server.rb,
lib/watchcat/version.rb,
lib/watchcat/executor.rb
Defined Under Namespace
Classes: AccessKind, AccessMode, AnyKind, Client, CreateKind, DataChange, Event, EventKind, Executor, MetadataKind, ModifyKind, RemoveKind, RenameMode, Server
Constant Summary collapse
- VERSION =
"0.2.1"
Class Method Summary collapse
Class Method Details
.watch(paths, recursive: true, force_polling: false, poll_interval: nil, wait_until_startup: false, ignore_remove: false, debounce: -1,, &block) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/watchcat.rb', line 12 def watch( paths, recursive: true, force_polling: false, poll_interval: nil, wait_until_startup: false, ignore_remove: false, debounce: -1, &block ) w = Watchcat::Executor.new( Array(paths), recursive: recursive, force_polling: force_polling, poll_interval: poll_interval, wait_until_startup: wait_until_startup, ignore_remove: ignore_remove, debounce: debounce, block: block ) w.start w end |