How to used chef-shell debugging tool

Hi,

I wan’t to do the debugging of chef,so that chef provides debugging tool
chef-shell .
But I am not able to understand that how to implement it means How can i used
this tool for Debugging purpose.

Thanks and Regards,
Seema Khalkar.

Hey,

seemakhalkar14@gmail.com writes:

Hi,

I wan't to do the debugging of chef,so that chef provides debugging tool
chef-shell .
But I am not able to understand that how to implement it means How can i used
this tool for Debugging purpose.

One way using just chef builtin features is via the 'breakpoint'
resource[0] combined with chef-shell. Then within a run you can use
chef_run.rewind, chef_run.resume, chef_run.skip_forward,
chef_run.skip_backward to move around in the recipe execution. You can
find detailed examples on chef-shell docs page[1]

[0] breakpoint Resource
[1] chef-shell (executable)

--
-sean