Ruby example of multiple-dispatch system abstraction, chef deployment, and runtime configuration snapshotting to generate a Chef recipe on the fly