mix mob.adopt.mob_exs (mob_dev v0.6.14)

Copy Markdown View Source

Writes mob.exs (build-environment config: mob_dir, elixir_lib) and ensures .gitignore ignores it.

Options

  • --local — pre-fill mob_dir and elixir_lib from MOB_DIR / MOB_DEV_DIR env vars (or sibling-directory fallbacks). Without --local the file uses Path.join(File.cwd!(), "deps/mob") and reads MOB_ELIXIR_LIB / :code.lib_dir(:elixir) at runtime.

Other orchestrator flags accepted but inert.

Idempotency

  • mob.exs is created with on_exists: :skip — re-running won't overwrite an edited mob.exs.
  • .gitignore patch checks for mob.exs before appending.

Typically called by mix mob.adopt, not directly.