# File lib/chef/index_queue/indexable.rb, line 68 def add_to_index(metadata={}) Chef::Log.debug("Pushing item to index queue for addition: #{self.with_indexer_metadata(metadata)}") object_with_metadata = with_indexer_metadata(metadata) obj_id = object_with_metadata["id"] obj = {:action => :add, :payload => self.with_indexer_metadata(metadata)} publish_object(obj_id, obj) end