lib/chef/policy_builder/expand_node_object.rb
# Ensures runlist override contains RunListItem instances
Ensures runlist override contains RunListItem instances
Ensures runlist override contains RunListItem instances
def runlist_override_sanity_check!
        if override_runlist.is_a?(String)
          @override_runlist = override_runlist.split(',').map { |e| e.strip }
        end
        @override_runlist = [override_runlist].flatten.compact
        override_runlist.map! do |item|
          if(item.is_a?(Chef::RunList::RunListItem))
            item
          else
            Chef::RunList::RunListItem.new(item)
          end
        end
      end
def runlist_override_sanity_check! if override_runlist . is_a? ( String ) @override_runlist = override_runlist . split ( ',' ) . map { | e | e . strip } end @override_runlist = [ override_runlist ] . flatten . compact override_runlist . map! do | item | if ( item . is_a? ( Chef :: RunList :: RunListItem ) ) item else Chef :: RunList :: RunListItem . new ( item ) end end end
Ensures runlist override contains RunListItem instances
Ensures runlist override contains RunListItem instances
# Convert to array and remove whitespace