module Sequent::Util::DryRun

Dry run provides the ability to inspect what would happen if the given commands would be executed without actually committing the results. You can inspect which commands are executed and what the resulting events would be with theSequent::Projector’s and Sequent::Workflow‘s that would be invoked (without actually invoking them).

Since the Workflow’s are not actually invoked new commands resulting from this Workflow will of course not be in the result.

Caution: Since the Sequent Configuration is shared between threads this method is not Thread safe.

Example usage:

result = Sequent.dry_run(create_foo_command, ping_foo_command)

result.print(STDOUT)