Created
November 14, 2014 22:09
-
-
Save juliandunn/ca001906a00a69dd56b3 to your computer and use it in GitHub Desktop.
Handler for running Pry in the report handler phase of Chef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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