lib/chef/policy_builder/expand_node_object.rb
# Expands the node's run list. Stores the run_list_expansion object for later use.
Expands the node's run list. Stores the run_list_expansion object for later use.
Expands the node ' s run list . Stores the run_list_expansion object for later use .
def expand_run_list
        @run_list_expansion = if Chef::Config[:solo]
          node.expand!('disk')
        else
          node.expand!('server')
        end
         Convert @expanded_run_list, which is an
         Array of Hashes of the form
           {:name => NAME, :version_constraint => Chef::VersionConstraint },
         into @expanded_run_list_with_versions, an
         Array of Strings of the form
           "{NAME}@{VERSION}"
        @expanded_run_list_with_versions = @run_list_expansion.recipes.with_version_constraints_strings
        @run_list_expansion
      rescue Exception => e
         TODO: wrap/munge exception with useful error output.
        events.run_list_expand_failed(node, e)
        raise
      end
def expand_run_list @run_list_expansion = if Chef :: Config [ :solo ] node . expand! ( 'disk' ) else node . expand! ( 'server' ) end @expanded_run_list_with_versions = @run_list_expansion . recipes . with_version_constraints_strings @run_list_expansion rescue Exception => e events . run_list_expand_failed ( node , e ) raise end
Expands the node's run list.
Expands the node ' s run list .
# @run_list_expansion is a RunListExpansion. # # Convert @expanded_run_list, which is an # Array of Hashes of the form #   {:name => NAME, :version_constraint => Chef::VersionConstraint }, # into @expanded_run_list_with_versions, an # Array of Strings of the form #   "#{NAME}@#{VERSION}" # TODO: wrap/munge exception with useful error output.