Sha256: caf55f2df1d97f6f5dcb2677064f602be219ff3741ef76825e17ce6a599ceda6
Contents?: true
Size: 537 Bytes
Versions: 3
Compression:
Stored size: 537 Bytes
Contents
module PodPrebuild module ZipUtils def self.zip(path, to_dir: nil) basename = File.basename(path) out_path = to_dir.nil? ? "#{basename}.zip" : "#{to_dir}/#{basename}.zip" cmd = [] cmd << "cd" << File.dirname(path) cmd << "&& zip -r --symlinks" << out_path << basename cmd << "&& cd -" `#{cmd.join(" ")}` end def self.unzip(path, to_dir: nil) cmd = [] cmd << "unzip -nq" << path cmd << "-d" << to_dir unless to_dir.nil? `#{cmd.join(" ")}` end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
cocoapods-binary-cache-next-0.1.16 | lib/command/helper/zip.rb |
cocoapods-binary-cache-next-0.1.15 | lib/command/helper/zip.rb |
cocoapods-binary-ht-1.0.0 | lib/command/helper/zip.rb |