Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Forked from juliandunn/pryhandler.rb
Last active August 29, 2015 14:12
Show Gist options
  • Save jtimberman/5e1937ffb865e43477b3 to your computer and use it in GitHub Desktop.
Save jtimberman/5e1937ffb865e43477b3 to your computer and use it in GitHub Desktop.
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