Module zotonic_filehandler_handler

Server process to handle file changes.

Copyright © 2017-2018 Marc Worrell

Behaviours: gen_server.

Authors: Marc Worrell (marc@worrell.nl).

Description

Server process to handle file changes. Serializes build events.

Function Index

code_change/3
compile_all/0
filewatcher_changes_observer/2Observer for the filewatcher changes notification.
handle_call/3
handle_cast/2
handle_changes/1
handle_info/2
ignore_action/2Ignore action commands, useful to prevent duplication of actions during longer runs or as side effects of running actions.
ignore_dir/2Ignore directories that are busy, for example a directory in lib-src where currently a Makefile is running.
init/1
reload_module/1
reload_modules/0
start_link/0
terminate/2

Function Details

code_change/3

code_change(Vsn, State, Extra) -> any()

compile_all/0

compile_all() -> ok | {error, term()}

filewatcher_changes_observer/2

filewatcher_changes_observer(Filewatcher_changes::#filewatcher_changes{}, Ctx::term()) -> ok

Observer for the filewatcher changes notification.

handle_call/3

handle_call(X1, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_changes/1

handle_changes(Es::map()) -> ok

handle_info/2

handle_info(Msg, State) -> any()

ignore_action/2

ignore_action(Action::term(), IsIgnore::boolean()) -> ok

Ignore action commands, useful to prevent duplication of actions during longer runs or as side effects of running actions.

ignore_dir/2

ignore_dir(Dir::file:filename_all(), IsIgnore::boolean()) -> ok

Ignore directories that are busy, for example a directory in lib-src where currently a Makefile is running.

init/1

init(X1) -> any()

reload_module/1

reload_module(Module::module()) -> ok | {error, term()}

reload_modules/0

reload_modules() -> ok | {error, term()}

start_link/0

start_link() -> {ok, pid()} | {error, term()}

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc