SeedHelper.Handles (Migration SeedHelper v0.2.0)

Copy Markdown

Summary

Functions

Get cached handle by name.

Set handle to value (which will be erlang term encoded) for reference by other seeds.

Functions

handle(handle, default \\ nil)

Get cached handle by name.

Examples

set_handle("default_user_code", 555)
handle("default_user_code")
#=> 555

handle("default_user_code_not_set", :not_set)
#=> :not_set

init()

set_handle(handle, value)

Set handle to value (which will be erlang term encoded) for reference by other seeds.

Example

set_handle("default_user", 1234)
#=> :ok