View Source nova (nova v0.9.11)
Link to this section Summary
Functions
Returns a proplist with all nova applications and their prefix. This function is useful when calulating dynamic routes.
Works as the regular application:get_env/3 but instead of giving a specific application we target the application that started nova.
Returns which environment nova is started in. This fetches the environment-variable in sys.config for Nova and returns the value found. Defaults to: dev
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
-type state() :: any().
Link to this section Functions
-spec get_apps() -> [{App :: atom(), Prefix :: list()}].
-spec get_env(Parameter :: atom(), Default :: any()) -> term() | undefined.
-spec get_environment() -> any().
-spec get_main_app() -> {ok, Application :: atom()} | undefined.
-spec set_env(Key :: atom(), Value :: any()) -> ok | {error, main_app_not_found}.