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.

21 lines
292 B

  1. module KGrader
  2. class Jail
  3. def initialize(root)
  4. @root = root
  5. end
  6. def init
  7. FileUtils.mkdir_p @root
  8. end
  9. def reset
  10. FileUtils.rm_rf @root
  11. end
  12. def stage(source, target)
  13. puts "[chroot::stage] #{source} -> (jail)/#{target}"
  14. end
  15. end
  16. end