grimoire v0.0.2 Grimoire.Config
Pass Config.parse a config map with the following keys:
- app_name: string|atom
- schemas: Path.join([strings])
- migration_dir: "priv/repo/migrations". String to be used in migration path functions.
paths: map of functions.
- %{ mypath: fn(config, data) -> "" end} }
templates: map of functions
- %{ mytemplate: fn(config, data) -> "" end }
Link to this section Summary
Functions
Map put if it doesn't already exist
Link to this section Functions
Link to this function
add_defaults(config)
Link to this function
calculate_permission(arg1, templates)
Link to this function
join_with_meta(arg)
Link to this function
mternary(m, k, v)
Map put if it doesn't already exist
## Examples
iex> mternary(%{}, [:foo, :bar], "hi")
%{foo: %{bar: "hi"}}
iex> mternary(%{}, :foo, "hi")
%{foo: "hi"}
Link to this function
parse(config)
Link to this function
parse_appname(cfg)
Link to this function
parse_cast(schema)
Link to this function
parse_joins(schema)
Link to this function
parse_map(m, templates)
Link to this function
parse_permissions(config)
Link to this function
parse_schema(schema)
Link to this function
parse_shorthand(schema)
Link to this function
seg_with_meta(d)
Link to this function