Class: IronHammer::Utils::Zipper
- Inherits:
-
Object
- Object
- IronHammer::Utils::Zipper
- Defined in:
- lib/iron_hammer/utils/zipper.rb
Class Method Summary collapse
Class Method Details
.zip_current_working_folder_into_this(file) ⇒ Object
7 8 9 10 11 |
# File 'lib/iron_hammer/utils/zipper.rb', line 7 def self.zip_current_working_folder_into_this file Zip::ZipFile::open(destination = file, true) do |zip| Dir[File.join('**', '*')].each { |source| zip.add(entry = source, source) } end end |