Bundlex v0.1.6 Bundlex.Platform behaviour View Source
Link to this section Summary
Functions
Detects current platform
Converts platform passed as options into platform atom valid for further use and module that contains platform-specific callbacks
Link to this section Types
Link to this type
name_t()
View Source
name_t()
View Source
name_t() :: atom()
name_t() :: atom()
Link to this section Functions
Link to this function
get_current!()
View Source
get_current!()
View Source
get_current!() :: name_t()
get_current!() :: name_t()
Detects current platform.
In case of success returns platform name
Otherwise raises Mix error.
Link to this function
get_from_opts!(opts)
View Source
get_from_opts!(opts)
View Source
get_from_opts!(OptionParser.parsed()) :: name_t()
get_from_opts!(OptionParser.parsed()) :: name_t()
Converts platform passed as options into platform atom valid for further use and module that contains platform-specific callbacks.
First argument are keyword list, as returned from OptionParser.parse/2
or
OptionParse.parse!/2
.
It expects that platform
option was passed to options.
In case of success returns platform name
Otherwise raises Mix error.
Link to this function
get_module!(atom) View Source
Link to this section Callbacks
Link to this callback
extra_otp_configure_options()
View Source
extra_otp_configure_options()
View Source
extra_otp_configure_options() :: [] | [String.t()]
extra_otp_configure_options() :: [] | [String.t()]
Link to this callback
patches_to_apply()
View Source
patches_to_apply()
View Source
patches_to_apply() :: [] | [String.t()]
patches_to_apply() :: [] | [String.t()]
Link to this callback
required_env_vars()
View Source
required_env_vars()
View Source
required_env_vars() :: [] | [String.t()]
required_env_vars() :: [] | [String.t()]
Link to this callback
toolchain_module()
View Source
toolchain_module()
View Source
toolchain_module() :: module()
toolchain_module() :: module()