zotonic_filehandler_handler (zotonic_filehandler v1.0.0-rc.15)

Server process to handle file changes. Serializes build events.

Link to this section Summary

Functions

Observer for the filewatcher changes notification.
Ignore action commands, useful to prevent duplication of actions during longer runs or as side effects of running actions.
Ignore directories that are busy, for example a directory in lib-src where currently a Makefile is running.

Link to this section Functions

Link to this function

code_change(Vsn, State, Extra)

-spec compile_all() -> ok | {error, term()}.
Link to this function

filewatcher_changes_observer(Filewatcher_changes, Ctx)

-spec filewatcher_changes_observer(#filewatcher_changes{}, term()) -> ok.
Observer for the filewatcher changes notification.
Link to this function

handle_call(_, From, State)

Link to this function

handle_cast(Msg, State)

Link to this function

handle_changes(Es)

-spec handle_changes(map()) -> ok.
Link to this function

handle_info(Msg, State)

Link to this function

ignore_action(Action, IsIgnore)

-spec ignore_action(term(), boolean()) -> ok.
Ignore action commands, useful to prevent duplication of actions during longer runs or as side effects of running actions.
Link to this function

ignore_dir(Dir, IsIgnore)

-spec ignore_dir(file:filename_all(), boolean()) -> ok.
Ignore directories that are busy, for example a directory in lib-src where currently a Makefile is running.
Link to this function

reload_module(Module)

-spec reload_module(module()) -> ok | {error, term()}.
Link to this function

reload_modules()

-spec reload_modules() -> ok | {error, term()}.
-spec start_link() -> {ok, pid()} | {error, term()}.
Link to this function

terminate(Reason, State)