class ChefCLI::Policyfile::UndoStack

def delete(id)

def delete(id)
  undo_file = undo_file_for(id)
  unless File.exist?(undo_file)
    raise UndoRecordNotFound, "No undo record for id '#{id}' exists at #{undo_file}"
  end
  record = load_undo_record(undo_file)
  yield record if block_given?
  File.unlink(undo_file)
  record
end