Method: Shell::ShellSession#reset!
- Defined in:
- lib/chef/shell/shell_session.rb
#reset! ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/chef/shell/shell_session.rb', line 53 def reset! loading do rebuild_node @node = client.node shorten_node_inspect Shell::Extensions.extend_context_node(@node) rebuild_context node.consume_attributes(node_attributes) if node_attributes @recipe = Chef::Recipe.new(nil, nil, run_context) Shell::Extensions.extend_context_recipe(@recipe) @node_built = true end end |