nova (nova v0.8.1) View Source

Interface module for nova

Link to this section Summary

Functions

Checks if a nova application is loaded
Works as the regular application:get_env/3 but instead of giving a specific application we target the application that started nova.
Returns the name of the main bw-application (The one that started everything)
Sets an environment variable for the main application.

Link to this section Types

Specs

state() :: any().

Link to this section Functions

Link to this function

application_loaded(Application)

View Source

Specs

application_loaded(Application :: atom()) -> boolean().
Checks if a nova application is loaded
Link to this function

get_env(Parameter, Default)

View Source

Specs

get_env(Parameter :: atom(), Default :: any()) -> term() | undefined.
Works as the regular application:get_env/3 but instead of giving a specific application we target the application that started nova.

Specs

get_main_app() -> {ok, Application :: atom()} | undefined.
Returns the name of the main bw-application (The one that started everything)

Specs

set_env(Key :: atom(), Value :: any()) -> ok | {error, main_app_not_found}.
Sets an environment variable for the main application.