Writes mob.exs — project config you commit (plugin activation, trust,
styles, and portable mob_dir / elixir_lib defaults) — and ensures
.gitignore ignores mob.local.exs, the machine-local override file
mob.exs imports last.
Options
--local— also writemob.local.exspointingmob_dirat the local checkout fromMOB_DIR(or a sibling-directory fallback). The absolute path never lands inmob.exs, which usesPath.join(File.cwd!(), "deps/mob")and readsMOB_ELIXIR_LIB/:code.lib_dir(:elixir)at runtime.
Other orchestrator flags accepted but inert.
Idempotency
- An existing
mob.exsis not rewritten; it only gains themob.local.exsimport line if it lacks one. mob.local.exsis created withon_exists: :skip..gitignorepatch checks formob.local.exsbefore appending.
Typically called by mix mob.adopt, not directly.