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 <firstname.lastname@example.org:email@example.com>
Reply-To: "firstname.lastname@example.org:email@example.com" <firstname.lastname@example.org:email@example.com>
Date: Sunday, March 10, 2013 8:44 AM
To: chef <firstname.lastname@example.org:email@example.com>
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?