edeliver v1.7.0 Releases.Plugin.ModifyRelup

Distillery plugin to auto-patch the relup file when building upgrades.

To be able use this plugin, it must be added in the rel/config.exs distillery config as plugin like this:

  environment :prod do
    ..
    plugin Releases.Plugin.ModifyRelup
  end

Link to this section Summary

Functions

Called after assembling the release

Called when the user invokes the mix distillery.release.clean task

Called after packaging the release

Called before assembling the release

Called before packaging the release

Link to this section Functions

Link to this function after_assembly(release)
Link to this function after_assembly(release, _)

Called after assembling the release.

Should return a modified %Release{} or nil.

Callback implementation for Distillery.Releases.Plugin.after_assembly/2.

Link to this function after_cleanup(release, _)

Called when the user invokes the mix distillery.release.clean task.

The callback will be passed the command line arguments to mix distillery.release.clean. It should clean up the files the plugin created. The return value of this callback is ignored.

Callback implementation for Distillery.Releases.Plugin.after_cleanup/2.

Link to this function after_package(release)
Link to this function after_package(_, _)

Called after packaging the release.

Should return a modified %Release{} or nil.

When in dev_mode, the packaging phase is skipped.

Callback implementation for Distillery.Releases.Plugin.after_package/2.

Link to this function before_assembly(release)
Link to this function before_assembly(_, _)

Called before assembling the release.

Should return a modified %Release{} or nil.

Callback implementation for Distillery.Releases.Plugin.before_assembly/2.

Link to this function before_package(release)
Link to this function before_package(_, _)

Called before packaging the release.

Should return a modified %Release{} or nil.

When in dev_mode, the packaging phase is skipped.

Callback implementation for Distillery.Releases.Plugin.before_package/2.