cortex v0.3.0 Cortex.Controller.Stage behaviour View Source

Link to this section Summary

Types

The type of the results to all stage commands

Callbacks

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 Types

Link to this type result() View Source
result() :: :ok | {:error, any}

The type of the results to all stage commands

Link to this section Callbacks

Link to this callback cancel_on_error?() View Source
cancel_on_error?() :: boolean

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

Link to this callback file_changed(atom, arg1) View Source
file_changed(atom, Path.t) :: result

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.

Run this stage on all possible files