Let the gzip utility function accept multiple paths.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Martin Kühl 2010-09-12 22:55:52 +02:00 committed by Adam Vandenberg
parent 389fdec9d4
commit 730cd0e6fe

View File

@ -165,9 +165,11 @@ def exec_editor *args
end
# GZips the given path, and returns the gzipped file
def gzip path
system "/usr/bin/gzip", path
return Pathname.new(path+".gz")
def gzip *paths
paths.collect do |path|
system "/usr/bin/gzip", path
Pathname.new(path+".gz")
end
end
module ArchitectureListExtension