Skip to content

Instantly share code, notes, and snippets.

@juliandunn
Created November 14, 2014 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save juliandunn/ca001906a00a69dd56b3 to your computer and use it in GitHub Desktop.
Save juliandunn/ca001906a00a69dd56b3 to your computer and use it in GitHub Desktop.
Handler for running Pry in the report handler phase of Chef
require 'chef/log'
require 'pry'
module ChefSoftware
class CookbookVersionsHandler < Chef::Handler
def report
Chef::Log.info('Pausing in handler to run pry; type "exit" to leave pry')
binding.pry
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment