Method: Chef::RunContext::ChildRunContext#initialize

Defined in:
lib/chef/run_context.rb

#initialize(parent_run_context) ⇒ ChildRunContext

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ChildRunContext.



751
752
753
754
755
756
757
758
# File 'lib/chef/run_context.rb', line 751

def initialize(parent_run_context)
  @parent_run_context = parent_run_context

  # We don't call super, because we don't bother initializing stuff we're
  # going to delegate to the parent anyway.  Just initialize things that
  # every instance needs.
  initialize_child_state
end