Get your Chef environment back to a pretty-printed hash. e.g. for use with vagrant.
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
|# Probably a better way to shell out, this was quick|
|# Interestingly, this gets typed out as a Chef::Environment, so you have to require 'Chef'|
|environment = JSON.parse(`knife environment show environmentname -Fj`)|
|# Pretty print your environment's hash.|
|# Suitable for use with vagrant!|