zotonic_filewatcher_beam_reloader (zotonic_filewatcher v1.0.0-rc.14)

Periodically loads modules whose beam file have been updated.

Link to this section Summary

Functions

Convert process state when code is changed
Periodic check for changed beam files.
Initiates the server.
Perform a make:all() and reload the changed beam files.
Check if beam files are changed, load the changed ones.
Reload a module, purge the old code.
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)

Periodic check for changed beam files.
Initiates the server.
Perform a make:all() and reload the changed beam files.
Check if beam files are changed, load the changed ones.
Link to this function

reload_module(M)

Reload a module, purge the old code.
Link to this function

start_link(Periodic)

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.