Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Chef
- class Resource
- oldrun_action = self.instance_method(:run_action)
- define_method(:run_action) do |action|
- store_prestate
- oldrun_action.bind(self).call(action)
- store_poststate
- end
- def store_prestate
- @prestate = {}
- end
- def store_poststate
- @poststate = {}
- end
- end
- end
Add Comment
Please, Sign In to add comment