#!/usr/bin/env ruby Dir["*"].each do |file| if File.directory?(file) #tODO add OS spesific, # if win use 7z instead. `zip -r "#{file}.zip" "#{file}"` end end