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, Client, CreateKind, DataChange, Event, EventKind, Executor, MetadataKind, ModifyKind, RemoveKind, RenameMode, Server

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.watch(paths, recursive: true, force_polling: false, &block) ⇒ Object



12
13
14
15
16
# File 'lib/watchcat.rb', line 12

def watch(paths, recursive: true, force_polling: false, &block)
  w = Watchcat::Executor.new(Array(paths), recursive: recursive, force_polling: force_polling, block: block)
  w.start
  w
end