Module: UtilityPack::SevenZip

Includes:
Win32
Defined in:
lib/utility_pack/7zip.rb

Overview

Wrapper around the rar archiving and compression utility

Class Method Summary collapse

Class Method Details

.sfx(archive_path, *paths) ⇒ Object



13
14
15
# File 'lib/utility_pack/7zip.rb', line 13

def self.sfx archive_path, *paths
  CoreHelpers.s "7za a -sfx7z.sfx \"#{archive_path}\" " +paths.flatten.collect{|p| "\"#{p}\""}.join(' ')
end

.zip(archive_path, *paths) ⇒ Object

creates a 7-zip archive for the specified files/directories archive_path - archive file that’ll be created *paths - files/directories to archive



9
10
11
# File 'lib/utility_pack/7zip.rb', line 9

def self.zip archive_path, *paths
  CoreHelpers.s "7za a -tzip \"#{archive_path}\" " +paths.flatten.collect{|p| "\"#{p}\""}.join(' ')
end