Class: HomeWorkChecker::Unarchive::Zip
- Inherits:
-
Object
- Object
- HomeWorkChecker::Unarchive::Zip
- Defined in:
- lib/hw_checker/zip.rb
Instance Method Summary collapse
-
#initialize(filename, tmp_path = '/tmp') ⇒ Zip
constructor
A new instance of Zip.
Constructor Details
#initialize(filename, tmp_path = '/tmp') ⇒ Zip
Returns a new instance of Zip.
4 5 6 7 |
# File 'lib/hw_checker/zip.rb', line 4 def initialize(filename, tmp_path = '/tmp') `7za t #{filename}` `7z x #{filename} -o#{tmp_path}` end |