Class: Chef::RunContext::ChildRunContext Private
- Inherits:
-
RunContext
- Object
- RunContext
- Chef::RunContext::ChildRunContext
- Extended by:
- Forwardable
- Defined in:
- lib/chef/run_context.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A child run context. Delegates all root context calls to its parent.
Constant Summary collapse
- CHILD_STATE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%w{ add_delayed_action before_notification_collection before_notifications create_child delayed_actions delayed_notification_collection delayed_notification_collection= delayed_notifications immediate_notification_collection immediate_notification_collection= immediate_notifications include_recipe initialize_child_state load_recipe load_recipe_file notifies_before notifies_delayed notifies_immediately parent_run_context resource_collection resource_collection= reverse_immediate_notifications root_run_context runner runner= unified_mode updated_resources }.map(&:to_sym)
Instance Method Summary collapse
-
#initialize(parent_run_context) ⇒ ChildRunContext
constructor
private
A new instance of ChildRunContext.
Constructor Details
#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 |