Skip to content

Instantly share code, notes, and snippets.

@op-ct
Forked from spiette/gist:5280394
Last active January 13, 2016 10:04
Show Gist options
  • Save op-ct/c1564c26a2e1a7d36735 to your computer and use it in GitHub Desktop.
Save op-ct/c1564c26a2e1a7d36735 to your computer and use it in GitHub Desktop.
Dumping the catalog from within a Puppet spec test
# WARNING: massive screen scroll
$stdout.puts self.catalogue.to_yaml
# Save to file
File.open( '_catalog.yaml', 'w'){ |f| f.puts self.catalogue.to_yaml }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment