Bundlex v0.2.5 Bundlex.Helper.MixHelper View Source
Module containing helper functions that ease retreiving certain values from Mix configuration files.
Link to this section Summary
Functions
Helper function for retreiving app name from mix.exs and failing if it was not found
Returns app for the given module. In case of failure fallbacks to get_app!/0
Returns path to the priv
dir for given application
Returns root directory of the currently compiled project
Returns root directory of the project of given application
Link to this section Functions
get_app!()
View Source
get_app!() :: atom()
get_app!() :: atom()
Helper function for retreiving app name from mix.exs and failing if it was not found.
get_app!(module) View Source
Returns app for the given module. In case of failure fallbacks to get_app!/0
.
get_priv_dir(application \\ get_app!()) View Source
Returns path to the priv
dir for given application.
get_project_dir()
View Source
get_project_dir() :: {:ok, binary()}
get_project_dir() :: {:ok, binary()}
Returns root directory of the currently compiled project.
get_project_dir(application) View Source
Returns root directory of the project of given application.