Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'find'
- require 'zip/zip'
- output = "c:/temp/test.zip"
- path = "C:/projects/travel/cucumber/features/support/forge/keys/wwhomepage"
- Zip::ZipFile.open(output, Zip::ZipFile::CREATE) do |zip|
- ::Find.find(path) do |file|
- next if File.directory?(file)
- entry = file.sub("#{path}/", '')
- zip.add entry, file
- end
- end
Add Comment
Please, Sign In to add comment