bundler v0.1.0 Mix.Releases.Appup

This module is responsible for generating appups between two releases.

Summary

Functions

Generate a .appup for the given application, start version, and upgrade version

Types

app :: atom
appup_ver :: charlist
instruction ::
  {:add_module, module} |
  {:delete_module, module} |
  {:update, module, :supervisor | {:advanced, [term]}} |
  {:load_module, module}

Functions

make(application, v1, v2, v1_path, v2_path)

Specs

make(app, version_str, version_str, path_str, path_str) ::
  {:ok, appup} |
  {:error, term}

Generate a .appup for the given application, start version, and upgrade version.

Parameters

  • application: the application name as an atom
  • v1: the previous version, such as “0.0.1”
  • v2: the new version, such as “0.0.2”
  • v1_path: the path to the v1 artifacts (rel//lib/-0.0.1)
  • v2_path: the path to the v2 artifacts (_build/prod/lib/)