cortex v0.3.0 Cortex.Reloader View Source

Link to this section Summary

Functions

Returns a boolean for whether or not an error should cancel the rest of the pipeline

Invoked any time a file is changed by the file watcher

Run this stage on all possible files

Link to this section Functions

Returns a boolean for whether or not an error should cancel the rest of the pipeline.

Callback implementation for Cortex.Controller.Stage.cancel_on_error?/0.

Link to this function file_changed(atom, path) View Source

Invoked any time a file is changed by the file watcher.

The first argument is the type of the file (:lib, :test, or :unknown), and the second is the path of the file.

Callback implementation for Cortex.Controller.Stage.file_changed/2.

Link to this function recompile() View Source
recompile() :: :ok
Link to this function reload_file(path) View Source
reload_file(Path.t) :: :ok | {:error, binary}

Run this stage on all possible files

Callback implementation for Cortex.Controller.Stage.run_all/0.