Pow v1.0.1 Mix.Pow View Source
Utilities module for mix tasks.
Link to this section Summary
Functions
Fetches context app for the project
Fetches the context base module for the app
Fetches the library path for the context app
Raises an exception if the application doesn't have the dependency
Raises an exception if application doesn't have Ecto as dependency
Raises an exception if application doesn't have Phoenix as dependency
Raises an exception if the project is an umbrella app
Parses argument options into a map
Link to this section Functions
context_app() View Source
Fetches context app for the project.
context_base(app) View Source
Fetches the context base module for the app.
context_lib_path(ctx_app, rel_path) View Source
Fetches the library path for the context app.
ensure_dep!(task, dep, args)
View Source
ensure_dep!(binary(), atom(), OptionParser.argv()) :: :ok | no_return()
ensure_dep!(binary(), atom(), OptionParser.argv()) :: :ok | no_return()
Raises an exception if the application doesn't have the dependency.
ensure_ecto!(task, args) View Source
Raises an exception if application doesn't have Ecto as dependency.
ensure_phoenix!(task, args) View Source
Raises an exception if application doesn't have Phoenix as dependency.
no_umbrella!(task) View Source
Raises an exception if the project is an umbrella app.
parse_options(args, switches, default_opts)
View Source
parse_options(OptionParser.argv(), Keyword.t(), Keyword.t()) ::
{map(), OptionParser.argv(), OptionParser.errors()}
parse_options(OptionParser.argv(), Keyword.t(), Keyword.t()) :: {map(), OptionParser.argv(), OptionParser.errors()}
Parses argument options into a map.