Class: P3libZip
- Inherits:
-
Object
- Object
- P3libZip
- Defined in:
- lib/refx/engine/p3lib/p3lib_zip.rb
Overview
library for all helper zip classes
Class Method Summary collapse
Class Method Details
.path_to_zipfile(path, zipfilepath) ⇒ Object
8 9 10 11 12 |
# File 'lib/refx/engine/p3lib/p3lib_zip.rb', line 8 def self.path_to_zipfile(path,zipfilepath) P3libLogger::log("Creating zipfile",path) cmd = "cd '#{File.dirname(path)}' && /usr/bin/zip -r '#{zipfilepath}' '#{File.basename(path)}'" system(cmd) end |