Conversion of ruby roles to json


#1

Just sharing a Rake task I created for converting roles in rb form to json
form.

(Why, you ask? Well, I find the ruby dsl is much more readable and writable
than the json file. The ruby files are good for everything on the platform, but
I’m testing my chef recipes and roles using vagrant with chef solo, which seems
to require json files (json is only created when you upload to server)

all the best

Tim