Let the gzip utility function accept multiple paths.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
389fdec9d4
commit
730cd0e6fe
@ -165,9 +165,11 @@ def exec_editor *args
|
|||||||
end
|
end
|
||||||
|
|
||||||
# GZips the given path, and returns the gzipped file
|
# GZips the given path, and returns the gzipped file
|
||||||
def gzip path
|
def gzip *paths
|
||||||
system "/usr/bin/gzip", path
|
paths.collect do |path|
|
||||||
return Pathname.new(path+".gz")
|
system "/usr/bin/gzip", path
|
||||||
|
Pathname.new(path+".gz")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module ArchitectureListExtension
|
module ArchitectureListExtension
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user