A code autograder for student homework submissions
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
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