Plushie.Automation.Runner (Plushie v0.6.0)

Copy Markdown View Source

Executes parsed .plushie automation files.

Starts a real Plushie app, attaches a Plushie.Automation.Session, runs each instruction sequentially, and collects results.

The parsed automation header is forwarded to app.init/1 under the :script option so apps can opt into script-specific setup if they want to.

Summary

Functions

Runs a parsed automation file.

Functions

run(map, opts \\ [])

@spec run(script :: Plushie.Automation.File.t(), opts :: keyword()) ::
  :ok | {:error, [{Plushie.Automation.File.instruction(), String.t()}]}

Runs a parsed automation file.

Returns :ok on success or {:error, failures} where failures is a list of {instruction, reason} tuples.