cucumber-chef icon indicating copy to clipboard operation
cucumber-chef copied to clipboard

Environments and Roles can be JSON as well as Ruby

Open pikesley opened this issue 11 years ago • 5 comments

I was attempting to use Etsy's rather nice knife-spork tool, but it blew up because it expects environments as JSON, not as Ruby, so I changed the env in question over to JSON and then my cuke-chef runs started failing spectacularly because it was only uploading the *.rb envs.

Hence this. And it's also valid for a role to be JSON, too, of course.

pikesley avatar Aug 15 '13 14:08 pikesley

Nice! Just see my one little comment there; looks like a little typo.

zpatten avatar Aug 15 '13 20:08 zpatten

Fixed. It's been a long day (also I'm sometimes an idiot)

;)

pikesley avatar Aug 15 '13 20:08 pikesley

Oh dammit. It fails if there are no JSON files present. I'll add some kind of checking around this.

pikesley avatar Aug 15 '13 21:08 pikesley

OK, try that for size :)

pikesley avatar Aug 15 '13 21:08 pikesley

I think this works now...

pikesley avatar Aug 16 '13 16:08 pikesley