View Source Mix.Pow (Pow v1.0.38)
Utilities module for mix tasks.
Summary
Functions
Fetches the context base module for the app.
Fetches the library path for the context app.
Raises an exception if application doesn't have Ecto as dependency.
Raises an exception if application doesn't have Phoenix as dependency.
Injects files with inline content
Raises an exception if the project is an umbrella app.
Parses argument options into a map.
Parses arguments into schema name and schema plural.
Functions
Fetches the context base module for the app.
Fetches the library path for the context app.
@spec ensure_ecto!(binary(), OptionParser.argv()) :: :ok
Raises an exception if application doesn't have Ecto as dependency.
@spec ensure_phoenix!(binary(), OptionParser.argv()) :: :ok
Raises an exception if application doesn't have Phoenix as dependency.
@spec inject_files([map()]) :: :ok | :error
Injects files with inline content
@spec no_umbrella!(binary()) :: :ok
Raises an exception if the project is an umbrella app.
@spec parse_options(OptionParser.argv(), Keyword.t(), Keyword.t()) :: {map(), OptionParser.argv(), OptionParser.errors()}
Parses argument options into a map.
Parses arguments into schema name and schema plural.