[chef] Re: Re: Chef report_handler that printout diff of files being changed


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Cc:
  • Subject: [chef] Re: Re: Chef report_handler that printout diff of files being changed
  • Date: Mon, 21 Mar 2011 08:06:23 -0700

On Monday, March 21, 2011 at 7:22 AM, Adam Jacob wrote:

I just pushed a branch to Github, CHEF-13-CHECK-METHODS. It's a first pass at implementing dry run mode, but for your purposes, you want to see this method:


That would let you walk the resource collection in the report handler, call diff, and get the output.

Adam

On Mon, Mar 21, 2011 at 1:36 AM, < "> > wrote:
Hi
 
I want to write a chef report handler that executes diff and reports for each file, template what was modified by chef
 
Anyone has done something similar? What is best way to do it?
 
Thank a lot

Take a look here for a report handler I wrote that walks the resource collection and interrogates the resources:

https://github.com/danielsdeleo/nom_nom_nom/blob/master/nomnomnom-client/lib/nom_nom_nom/status.rb#L130-137

HTH,

-- 
Dan DeLeo




Archive powered by MHonArc 2.6.16.

§