Method: Watchr::EventHandler::Darwin#refresh

Defined in:
lib/watchr/event_handlers/darwin.rb

#refresh(monitored_paths) ⇒ undefined

Rebuild file bindings. Will detach all current bindings, and reattach the monitored_paths

Parameters:

  • monitored_paths (Array<Pathname>)

    list of paths the application is currently monitoring.

Returns:

  • (undefined)


51
52
53
54
# File 'lib/watchr/event_handlers/darwin.rb', line 51

def refresh(monitored_paths)
  register_paths(monitored_paths)
  restart
end