It doesn’t presently support .rb, you’re correct. There’s no CHEF- issue, but one is filed in the development version of knife-essentials (which is where knife diff comes from): https://github.com/jkeiser/knife-essentials/issues/67
The gem is still updated, btw, and has had significant updates since the release—if you install it, it will replace knife diff with a newer (development) version. I’m hoping to fold these back into chef when the velocity slows again.
From: Jesse Campbell <email@example.com:firstname.lastname@example.org>
Reply-To: "email@example.com:firstname.lastname@example.org" <email@example.com:firstname.lastname@example.org>
Date: Sunday, March 10, 2013 8:44 AM
To: chef <email@example.com:firstname.lastname@example.org>
Subject: [chef] knife diff with ruby roles/environments?
so i’m new to knife diff, and i tried to use it today to compare my chef server’s roles against my repository.
what i found was that it thought every single role was missing from the repository.
am I missing an option somewhere, or does knife diff simply not support .rb files at all for environments and roles?
if that is the case, is there an open ticket to add that support?