class ChefCLI::PolicyfileServices::Undelete

def list

entry point. This prints the list of undoable items, with descriptions.
In addition to the #run method, this class also has #list as a public
def list
  if undo_stack.empty?
    ui.err("Nothing to undo.")
  else
    messages = []
    undo_stack.each_with_id do |timestamp, undo_record|
      messages.unshift("#{timestamp}: #{undo_record.description}")
    end
    messages.each { |m| ui.msg(m) }
  end
end