class HwCheker::HomeWorkChecker::Unarchive::Zip

Public Class Methods

new(filename, tmp_path = '/tmp') click to toggle source
# File lib/hw_cheker/zip.rb, line 6
def initialize(filename, tmp_path = '/tmp')
  @file = filename
  `7za t #{@file}`
  `7z x #{@file} -o#{tmp_path}`
end