zotonic_filewatcher_inotify (zotonic_filewatcher v1.0.0-rc.13)

Watch for changed files using inotifywait. https://github.com/rvoicilas/inotify-tools/wiki

Link to this section Summary

Functions

Convert process state when code is changed
Reading a line from the inotifywait program. Sets a timer to prevent duplicate file changed message for the same filename (e.g. if a editor saves a file twice for some reason).
Initiates the server.
Starts the server
This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.

Link to this section Functions

Link to this function

code_change(OldVsn, State, Extra)

Convert process state when code is changed
Link to this function

handle_call(Message, From, State)

Trap unknown calls
Link to this function

handle_cast(Message, State)

Link to this function

handle_info(Info, State)

Reading a line from the inotifywait program. Sets a timer to prevent duplicate file changed message for the same filename (e.g. if a editor saves a file twice for some reason).
Initiates the server.
-spec is_installed() -> boolean().
-spec restart() -> ok.
-spec start_link() -> {ok, pid()} | ignore | {error, term()}.
Starts the server
Link to this function

terminate(Reason, State)

This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.