Skip to content

Commit

Permalink
Let the gzip utility function accept multiple paths.
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
mkhl authored and adamv committed Sep 19, 2010
1 parent fab151c commit ba010f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Library/Homebrew/utils.rb
Expand Up @@ -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
Expand Down

0 comments on commit ba010f1

Please sign in to comment.