Grains.Supervisor (Grains v1.7.0)

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Retrieve the bread supervisor.

Get the original recipe underlying the supervisor.

Retrieve the root bread name.

Callback implementation for Supervisor.init/1.

Retrieve the id and registered name of currently running grains.

Link to this section Types

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_bread_supervisor(supervisor)

Retrieve the bread supervisor.

Crashes if :bread_supervisor is not started.

Link to this function

get_original_recipe!(supervisor)

Get the original recipe underlying the supervisor.

Link to this function

get_root_name(supervisor)

Retrieve the root bread name.

This function assumes that the supervisor has a registered name.

Callback implementation for Supervisor.init/1.

Link to this function

start_link(recipe, grains, args \\ [])

Link to this function

which_grains(supervisor)

Retrieve the id and registered name of currently running grains.