cortex v0.2.1 Cortex.Controller.Stage behaviour View Source
Link to this section Summary
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
Link to this section Callbacks
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) :: :ok | {:error, any}
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.