class ChefCLI::PolicyfileServices::Undelete
def list
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