Module cuttlefish_generator

Function Index

add_defaults/2adds default values from the schema when something's not defined in the Conf, to give a complete app.config.
find_mapping/2
map/2
map/3
minimal_map/2Generates an Erlang config that only includes the settings encompassed by the passed Config, excluding defaults from the schema for unspecified settings.

Function Details

add_defaults/2

add_defaults(Conf, Mappings) -> any()

adds default values from the schema when something's not defined in the Conf, to give a complete app.config

find_mapping/2

find_mapping(Variable, Mappings) -> any()

map/2

map(Schema::cuttlefish_schema:schema(), Config::cuttlefish_conf:conf()) -> [proplists:property()] | {error, atom(), cuttlefish_error:errorlist()}

map/3

map(Schema::cuttlefish_schema:schema(), Config::cuttlefish_conf:conf(), ParsedArgs::[proplists:property()]) -> [proplists:property()] | {error, atom(), cuttlefish_error:errorlist()}

minimal_map/2

minimal_map(X1::cuttlefish_schema:schema(), Config::cuttlefish_conf:conf()) -> [proplists:property()] | {error, atom(), cuttlefish_error:errorlist()}

Generates an Erlang config that only includes the settings encompassed by the passed Config, excluding defaults from the schema for unspecified settings.


Generated by EDoc