30 31 32 33 34 35 36 37
# File 'lib/asrake/package.rb', line 30 def execute rm_r output rescue nil Zip::ZipFile.open(output, Zip::ZipFile::CREATE) do |zipfile| files.each do |to, from| zipfile.add(Path::forward(to), Path::forward(from)) end end end