A code autograder for student homework submissions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
733 B

  1. module KGrader
  2. class Task
  3. def initialize(filesystem, course, semester, assignment)
  4. @fs = filesystem
  5. @course = course
  6. @semester = semester
  7. @assignment = assignment
  8. @roster = @course.roster @semester
  9. end
  10. def grade(options = {})
  11. students = @roster.students
  12. students &= options[:students] unless options[:students].nil?
  13. # TODO
  14. puts "Grading #{@course.name}:#{@semester} assignment #{@assignment}..."
  15. puts "- options: #{options}"
  16. puts "- students: #{students.inspect}"
  17. end
  18. def commit(options = {})
  19. # TODO
  20. puts "Committing #{@course.name}:#{@semester} assignment #{@assignment}..."
  21. puts "- options: #{options}"
  22. end
  23. end
  24. end