handleWriteStep method

void handleWriteStep(
  1. WriteStep step
)

Implementation

void handleWriteStep(WriteStep step) {
  final writeFile = render(step.enabled).meansTrue;
  if (!writeFile) return;

  final outputTask = OutputTask(
    fileContent: render(step.content),
    outputPath: render(step.file),
    writeMethod: WriteMethod.from(
      name: render(step.writeMethod),
      extendAt: render(step.extendAt),
    ),
  );

  OutputWriter().writeOutputs([outputTask]);
}