buildContext method

InstallContext buildContext(
  1. ArtisanContext ctx
)
inherited

Constructs the production InstallContext wired around ctx.

Subclasses override only when they need a custom context (e.g. tests in the host package may override to inject an in-memory VirtualFs). The default wiring is the production stack (RealFs / RealPromptDriver / RealStubDriver / DateTime.now).

@param ctx The active ArtisanContext handed to handle. @return A fully wired InstallContext ready for PluginInstaller.

Implementation

InstallContext buildContext(ArtisanContext ctx) => InstallContext.real(ctx);