A code autograder for student homework submissions
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

1234567891011121314151617181920
  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