View Source Edeliver.Relup.DefaultModification (edeliver v1.9.2)

This module provides default modifications of the relup instructions.

It is used unless a Edeliver.Relup.Modification module is found with a higher priority (and which is also usable) or another module is passed to the --relup-mod= command line option. E.g. for phoenix apps this would be the default Edeliver.Relup.PhoenixModification. This module uses the Edeliver.Relup.Instructions.SoftPurge instruction to replace :brutal_purge code loading options with :soft_purge.

Link to this section Summary

Functions

Returns true if this relup modification is usable for the project or not.

Link to this section Functions

Link to this function

modify_relup(instructions, config)

View Source

Callback implementation for Edeliver.Relup.Modification.modify_relup/2.

@spec priority() :: non_neg_integer()

Returns the priority Edeliver.Relup.Modification.priority_default/0.

Unless the module is set by the RELUP_MODIFICATION_MODULE env or the --relup-mod= command line option the module with the highest priority is used (which is also usable).

@spec usable?(Edeliver.Relup.Config.t()) :: boolean()

Returns true if this relup modification is usable for the project or not.

E.g. the Edeliver.Relup.PhoenixModifcation returns true only if the project is a phoenix project. This function returns true by default can be overridden in a custom Edeliver.Relup.Modification behaviour implementation.