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