-
-
Save op-ct/c1564c26a2e1a7d36735 to your computer and use it in GitHub Desktop.
Dumping the catalog from within a Puppet spec test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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