# File lib/facets/core/fileutils/compress.rb, line 87 def zip( folder, to_file=nil ) to_file ||= File.basename(File.expand_path(folder)) + 'tar.bz2' cmd = "zip -cf #{to_file} #{folder}" puts cmd system cmd return File.expand_path(to_file) end