chrisfjones/coffin — pull request #8 by addisonj (2012-08-22 17:08:51+00:00)
Title: Add support for (trying) to parse existing templates into DSL syntax

This commit aims at adding support for parsing existing CFN templates and turning them into .coffin files.

Since .template files are valid JSON, its pretty easy to traverse the object and output .coffin syntax. That said, getting the coffee-script formatting right is kinda painful and I make no guarantees this will work for all templates, but it should get you pretty darn close.

I did run it on about 8 of my existing templates and they all produced expected output.

It also handles any ordering of resources by using DeclareResource.

Sorry about no tests, I have already spent more time than intended on this.

If you don't want to merge without tests, you might keep it open and I will see if I get around to it over the next few weeks.