Mix.Project.in_project
You're seeing just the function
in_project
, go back to Mix.Project module for more information.
Specs
Runs the given fun
inside the given project.
This function changes the current working directory and loads the project at the given directory onto the project stack.
A post_config
can be passed that will be merged into
the project configuration.
fun
is called with the module name of the given Mix.Project
.
The return value of this function is the return value of fun
.
Examples
Mix.Project.in_project(:my_app, "/path/to/my_app", fn module ->
"Mix project is: #{inspect(module)}"
end)
#=> "Mix project is: MyApp.MixProject"